[Biopython-dev] maintenance release

Jeffrey Chang jchang at jeffchang.com
Tue Sep 16 12:58:00 EDT 2003


Cool, I've committed this.

jeff


On Monday, September 15, 2003, at 09:02  PM, Michiel Jan Laurens de 
Hoon wrote:

> > Please replace the line:
> >     if sys.platform == 'win32':
> > with:
> >     if 0 and sys.platform == 'win32':
>
> This puts the .dtd files in 
> C:\Python23\Python23\lib\site-packages\Bio\EUtils\DTDs\.
> (Note the double Python23).
>
> However, the following does seem to work:
>
> dtd_path = os.path.join("Bio", "EUtils", "DTDs")
> if sys.platform == 'win32':
>     path = os.path.join("Lib\\site-packages", dtd_path)
> else:
>     path = os.path.join(
>         os.path.split(os.__file__)[0], "site-packages", dtd_path)
> x = os.listdir(os.path.join(os.getcwd(), dtd_path))
> x = [os.path.join(dtd_path, x) for x in x if x.endswith(".dtd")]
> DATA_FILES.append((path, x))
> del dtd_path, path, x
>
> This puts the .dtd files in
> C:\Python23\lib\site-packages\Bio\EUtils\DTDs\.
>
> --Michiel.
>
> Jeffrey Chang wrote:
>
>>> I tried this on Windows. I don't get any error messages when 
>>> compiling and building the installer.
>>>
>>> The *.dtd files get installed in C:\Python23\Bio\EUtils\DTDs, while 
>>> C:\Python23\Lib\site-packages\Bio\EUtils\DTDs contains the .py, 
>>> .pyc, and .pyo files.
>> Hmm, I want the .dtd files to be in the same place as the .py files.  
>> Can you try making a slight change to the setup.py file and see if it 
>> does that?
>> Please replace the line:
>>     if sys.platform == 'win32':
>> with:
>>     if 0 and sys.platform == 'win32':
>>> However, on Cygwin the *.dtd and *.py, *.pyc files both get 
>>> installed into 
>>> /usr/local/lib/python2.3/site-packages/Bio/EUtils/DTDs.
>> Yep, that's what I want.
>>> Are these the correct locations? Is there a way to check if EUtils 
>>> is working correctly?
>> Not sure how to check, because I haven't used EUtils.  However, this 
>> is how Brad (who has used EUtils) had set up the installer for Unix.  
>> Andrew, can you confirm?
>> Jeff
>
> -- 
> Michiel de Hoon, Assistant Professor
> University of Tokyo, Institute of Medical Science
> Human Genome Center
> 4-6-1 Shirokane-dai, Minato-ku
> Tokyo 108-8639
> Japan
> http://bonsai.ims.u-tokyo.ac.jp/~mdehoon




More information about the Biopython-dev mailing list