Phillip J. Eby <pje <at> telecommunity.com> wrote:
> From reading your setup script, I don't understand why your package
> needs a .pth file of its own, let alone why it's writing it directly
> in the setup script. I would expect it to work correctly if you
> simply delete that portion of the setup script. In fact, it works
> for me that way.
Without the .pth file, the libraries in the folder pyspread are not found.
If I leave it out, the program fails to start (after installation finished
successfully).
> > One other thing you need to change if you want easy_install to handle
> > dependencies:
> >
> > requires=['numpy (>=1.1)', 'wx (>=2.7)'],
> Either change this line (or add another) saying:
>
> install_requires=["numpy>=1.1", "wx>=2.7"],
This does not work at all for me. I do have all dependencies met (I am
installing everything else via apt) but easy_install does not recognize it and
throws a DistributionNotFound: wx>=2.7 *after* installation.
>Also note that this line is superfluous (neither distutils nor
>setuptools need it):
>
>> package_dir={'pyspread': 'pyspread'},
I have removed that sucessfully.
> And of course, delete the entire block below; as far as I can tell,
> it's not needed for distutils or setuptools.
>
> >import distutils.sysconfig
> >try:
> > pthfile = open(get_python_lib() + "/pyspread.pth", 'w')
> > pthfile.write("pyspread")
> > pthfile.close()
> >except IOError:
> > print 'Creation of ' + distutils.sysconfig.get_python_lib() + '
> > pyspread.pth
> >failed.'
And how do I get the pyspread.pth file created?
Best Regards
Martin
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig