Re: docutils win32 binary installer puts data files in wrong directory
GD Alcos <guy.dalberto <at> alcos.fr>
2006-05-05 13:36:56 GMT
Hello Felix
At 20:52 04/05/2006, you wrote:
>GD Alcos wrote:
> > problem: the binary Windows installer created by **python setup.py
> > bdist_wininst**, will install data files in the wrong place
>
>Unfortunately this doesn't work with Python 2.2, and we want to be
>compatible to Python 2.2.
I didn't know it could not work on Python 2.2. I am currently using
Python 2.4, and was using Python 2.3
>Might using the current method for Python 2.2 and using the new method
>for Python 2.3+ (using sys.hexversion) solve the problem for you?
My problem is solved. I modified the setup.py source and everything
runs fine on my computers
and on my clients computers (using Python 2.3 or 2.4).
I was just transmitting some info to try to help others.
If somebody creates a binary installer with the current setup.py,
the data files will not be installed in the right place, and his
users will have errors kind of :
*C:\Python24\Lib\site-packages\docutils\writers\html4css1\html4css1.css
Not Found*
>When is that setup code executed? Only when the EXE is created, or when
>the EXE is run, or both? (If you don't know, please just tell me so,
>and I'll do some testing myself.)
The setup.py code can be used in many ways :
+ display help :
python setup.py --help
+ install docutils
python setup.py install
+ create a binary installer (windows)
python setup.py bdist_wininst
+ with *-k* option, we keep the temporary file tree used as source
for the installer : *docutils-5_0/build/bdist.win32/wininst*
python setup.py bdist_wininst -k
============================================= Description of the problem
The temporary subtree *docutils-5_0/build/bdist.win32/wininst* on the
computer where we prepare the binary installer should only contain
2 sub-folders : PURELIB and SCRIPTS (with html4css1.css is in the
PURELIB subtree)
With the current setup.py, it contains 3 sub-folders : PURELIB,
SCRIPTS and DATA (with html4css1.css is in the DATAsubtree).
The binary installer created from this tree will copy the files of
the DATA subtree in a subfolder of *C:\Documents and
Settings\xxxx\Application Data*
where xxxx is the user login name.
When *docutils\writers\html4css1\__init__.py* will eventually run, it
will not find html4css1.css where he is searching it.
And the user will wonder what's happening.
===============
Regards, Guy
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642