[Distutils] bdist_wininst on Linux (was Distutils changes - end user requirements (Was: Deprecate MANIFEST.in))
P.J. Eby
pje at telecommunity.com
Fri Apr 10 00:06:02 CEST 2009
At 01:54 PM 4/9/2009 -0700, Andrew Straw wrote:
>P.J. Eby wrote:
> > At 04:02 PM 4/9/2009 -0400, Tres Seaver wrote:
> >> Warning: Can't read registry to find the necessary compiler setting
> >> Make sure that Python modules _winreg, win32api or win32con are
> >> installed.
> >> error:
> >>
> /home/tseaver/projects/Zope-CVS/lib/python2.6/distutils/command/wininst-6.0ux-i686.exe:
> >>
> >> No such file or directory
> >>
> >> Note that this package is pure python.
> >
> > Looks like somebody broke it in 2.6 then... I build the 2.3-2.5
> > bdist_wininst installers for setuptools on a Linux box.
> >
> > _______________________________________________
> > Distutils-SIG maillist - Distutils-SIG at python.org
> > http://mail.python.org/mailman/listinfo/distutils-sig
>
>
>I just reconfigured and remade a clean Python 2.5.4 and also get a
>failure. What did you need to get this to work with 2.3-2.5?
Nothing. I get the same warning message, but the executable gets
built and is found in the dist/ directory. Notice that Tres's error
message is for the absence of a 'wininst-6.0ux-i686.exe'... which
suggests that it may simply be a problem with his local Python
installation, rather than a 2.6-specific isssue.
>My setup.py is:
>
>from distutils.core import setup
>setup(name="simplepack",
> version="1.0",
> author="Andrew Straw <strawman at astraw.com>",
> packages = ['simplepack']
> )
>
>And the other files are:
>
>./simplepack/__init__.py (empty)
>./simplepack/simplepack.py (has a single print statement)
>
>The error I got was:
>
>$ ~/py2.5/bin/python setup.py bdist_wininst
>running bdist_wininst
>running build
>running build_py
>creating build
>creating build/lib
>creating build/lib/simplepack
>copying simplepack/__init__.py -> build/lib/simplepack
>copying simplepack/simplepack.py -> build/lib/simplepack
>installing to build/bdist.linux-x86_64/wininst
>running install_lib
>creating build/bdist.linux-x86_64
>creating build/bdist.linux-x86_64/wininst
>creating build/bdist.linux-x86_64/wininst/PURELIB
>creating build/bdist.linux-x86_64/wininst/PURELIB/simplepack
>copying build/lib/simplepack/__init__.py ->
>build/bdist.linux-x86_64/wininst/PURELIB/simplepack
>copying build/lib/simplepack/simplepack.py ->
>build/bdist.linux-x86_64/wininst/PURELIB/simplepack
>running install_egg_info
>Writing
>build/bdist.linux-x86_64/wininst/PURELIB/simplepack-1.0-py2.5.egg-info
>creating '/tmp/tmpUytyOq.zip' and adding '.' to it
>adding 'PURELIB/simplepack-1.0-py2.5.egg-info'
>adding 'PURELIB/simplepack/__init__.py'
>adding 'PURELIB/simplepack/simplepack.py'
>creating dist
>Warning: Can't read registry to find the necessary compiler setting
>Make sure that Python modules _winreg, win32api or win32con are installed.
>removing 'build/bdist.linux-x86_64/wininst' (and everything under it)
More information about the Distutils-SIG
mailing list