SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: John H. <jdh...@ac...> - 2004年09月20日 15:30:49
Many new users have been bitten by trying to run matplotlib from the
matplotlib src dir, only to get an inscrutable error about not being
able to find some extension code, as described in this FAQ
http://matplotlib.sourceforge.net/faq.html#WRONGDIR.
Recently, I've added pytz and dateutil for improved timezone and date
ticking to the src distro. I want to conditionally install these
packages with matplotlib, only if the user hasn't installed them
already. So in setup.py, I do for example
try: import dateutil
except ImportError:
 packages.append('dateutil')
But I was bitten by the same bug. Because dateutil was in the
matplotlib root dir, it was imported successfully and not installed.
My proposal is to move all the python library code into a lib subdir,
which currently would look like
 lib\matplotlib
 lib\pytz
 lib\dateutil
and use package_dir = {'': 'lib'} in setup.py, which would fix both
problems.
Of course, I'll have to submit an admin request to sourceforge just to
get the old dirs purged. Sure would be nice if CVS supported basic
rename and delete operations on directories.
Comments, suggestions, objections...
JDH
From: Paul B. <ba...@st...> - 2004年09月20日 17:41:47
John Hunter wrote:
>Many new users have been bitten by trying to run matplotlib from the
>matplotlib src dir, only to get an inscrutable error about not being
>able to find some extension code, as described in this FAQ
>http://matplotlib.sourceforge.net/faq.html#WRONGDIR.
>
>Recently, I've added pytz and dateutil for improved timezone and date
>ticking to the src distro. I want to conditionally install these
>packages with matplotlib, only if the user hasn't installed them
>already. So in setup.py, I do for example
>
>try: import dateutil
>except ImportError:
> packages.append('dateutil')
>
>
>But I was bitten by the same bug. Because dateutil was in the
>matplotlib root dir, it was imported successfully and not installed.
>
>My proposal is to move all the python library code into a lib subdir,
>which currently would look like
>
> lib\matplotlib
> lib\pytz
> lib\dateutil
>
>and use package_dir = {'': 'lib'} in setup.py, which would fix both
>problems.
>
>Of course, I'll have to submit an admin request to sourceforge just to
>get the old dirs purged. Sure would be nice if CVS supported basic
>rename and delete operations on directories.
>
>Comments, suggestions, objections...
> 
>
Should I assume that the installed packages would have the same 
structure, i.e. lib/python2.3/site-packages/matplotlib/ ? If yes, then I 
see no problem with this proposal.
 -- Paul
-- 
Paul Barrett, PhD Space Telescope Science Institute
Phone: 410-338-4475 ESS/Science Software Branch
FAX: 410-338-4767 Baltimore, MD 21218
From: John H. <jdh...@ac...> - 2004年09月20日 17:49:05
>>>>> "Paul" == Paul Barrett <ba...@st...> writes:
 Paul> Should I assume that the installed packages would have the
 Paul> same structure, i.e. lib/python2.3/site-packages/matplotlib/
 Paul> ? If yes, then I see no problem with this proposal.
Yes, the install paths would be unaffected.
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /