[issue14] Executing "./ez_setup.py" fails.
New submission from Zooko O'Whielacronx <zooko@zooko.com>: On my Mac: $ ./ez_setup.py bash: ./ez_setup.py: python: bad interpreter: No such file or directory On Cygwin I get the same sort of error. Replacing the shebang line "#!python" with "#!/usr/bin/env python" fixes this problem. I've tested this fix on Mac, Linux, Solaris, Cygwin, and Windows. ---------- messages: 18 nosy: zooko priority: bug status: unread title: Executing "./ez_setup.py" fails. _______________________________________________ Setuptools tracker <setuptools@bugs.python.org> <http://bugs.python.org/setuptools/issue14> _______________________________________________
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry if this is already answered, but I have no found any reference about this issue. Suppose I have a package indexed in PYPI. I have two versions: python 2.x and 3.x. The code has C inside, so it is distributed as a tar.gz, not an egg. How is setuptools/easy_install to download the right version for my python installation? :-?? - -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBSEV13Zlgi5GaxT1NAQKfgQP/YNgOiXNJbZ7A9MT3yaNwPU6bsQeHAy3F d+iPf3waAfTVouIsrs7l9nw8EC6vpp6353XlqaEPMwJnrBKB7sIew58z1g2ipveB I7vp8oIsmkKZ6gtmkpys9a1mU507TVuwrHSSrNyOlAcsVMF5203tzRvFM8CK4SWz 7H3RNBUuMdI= =sn6g -----END PGP SIGNATURE-----
On Tue, Jun 3, 2008 at 6:48 PM, Jesus Cea <jcea@jcea.es> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sorry if this is already answered, but I have no found any reference about this issue.
Suppose I have a package indexed in PYPI. I have two versions: python 2.x and 3.x. The code has C inside, so it is distributed as a tar.gz, not an egg.
How is setuptools/easy_install to download the right version for my python installation? :-??
Binary distributions have the name of the platform it was built on in the filename. See setuptools for instance: http://pypi.python.org/pypi/setuptools
- -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org <xmpp%3Ajcea@jabber.org> _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBSEV13Zlgi5GaxT1NAQKfgQP/YNgOiXNJbZ7A9MT3yaNwPU6bsQeHAy3F d+iPf3waAfTVouIsrs7l9nw8EC6vpp6353XlqaEPMwJnrBKB7sIew58z1g2ipveB I7vp8oIsmkKZ6gtmkpys9a1mU507TVuwrHSSrNyOlAcsVMF5203tzRvFM8CK4SWz 7H3RNBUuMdI= =sn6g -----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
On Tue, Jun 3, 2008 at 7:22 PM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
On Tue, Jun 3, 2008 at 6:48 PM, Jesus Cea <jcea@jcea.es> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Sorry if this is already answered, but I have no found any reference about this issue.
Suppose I have a package indexed in PYPI. I have two versions: python 2.x and 3.x. The code has C inside, so it is distributed as a tar.gz, not an egg.
How is setuptools/easy_install to download the right version for my python installation? :-??
Binary distributions have the name of the platform it was built on in the filename.
and the python version
See setuptools for instance: http://pypi.python.org/pypi/setuptools
- -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org <xmpp%3Ajcea@jabber.org> _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBSEV13Zlgi5GaxT1NAQKfgQP/YNgOiXNJbZ7A9MT3yaNwPU6bsQeHAy3F d+iPf3waAfTVouIsrs7l9nw8EC6vpp6353XlqaEPMwJnrBKB7sIew58z1g2ipveB I7vp8oIsmkKZ6gtmkpys9a1mU507TVuwrHSSrNyOlAcsVMF5203tzRvFM8CK4SWz 7H3RNBUuMdI= =sn6g -----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tarek Ziadé wrote: |> Binary distributions have the name of the platform it was built on in |> the filename. I know. But I want to distribute a tar.gz source package. I can't distribute binaries for 20 different platforms/python versions. - -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBSEWCt5lgi5GaxT1NAQJW9gP/QU29rpuWCi275Ff+d0GkWksOOvfu90Qc t13I9B8Hj4oRU/brjPJ5JtHel7l55HK7Dxlp0xOpGDuysMJUpf06u4d6K163ugqg Xt87xlZz0ercOmJBjyJOI77zukK03Za/uMpi0pjUvTvDq+C15AX757nEVftFpQVC lFEvCjQ2V/E= =OG1r -----END PGP SIGNATURE-----
At 07:43 PM 6/3/2008 +0200, Jesus Cea wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Tarek Ziadé wrote: |> Binary distributions have the name of the platform it was built on in |> the filename.
I know. But I want to distribute a tar.gz source package. I can't distribute binaries for 20 different platforms/python versions.
My suggestion: make a setup.py that simply checks the running version of Python, and then execfiles 'setup2.py' or 'setup3.py' accordingly. That should be relatively future-proof. Personally, I'm not aware that anyone has successfully run setuptools on Python 3 anyway, so it's likely moot. (In truth, I'm not sure how much *distutils* has been tested on Python 3.)
On Tue, Jun 3, 2008 at 7:43 PM, Jesus Cea <jcea@jcea.es> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Tarek Ziadé wrote: |> Binary distributions have the name of the platform it was built on in |> the filename.
I know. But I want to distribute a tar.gz source package. I can't distribute binaries for 20 different platforms/python versions.
You can have one source distribution but not for different versions of Python. I would deal with Python versions inside the package itself, in the setup.py script and hav both version in it.
- -- Jesus Cea Avion _/_/ _/_/_/ _/_/_/ jcea@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ jabber / xmpp:jcea@jabber.org <xmpp%3Ajcea@jabber.org> _/_/ _/_/ _/_/_/_/_/ . _/_/ _/_/ _/_/ _/_/ _/_/ "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBSEWCt5lgi5GaxT1NAQJW9gP/QU29rpuWCi275Ff+d0GkWksOOvfu90Qc t13I9B8Hj4oRU/brjPJ5JtHel7l55HK7Dxlp0xOpGDuysMJUpf06u4d6K163ugqg Xt87xlZz0ercOmJBjyJOI77zukK03Za/uMpi0pjUvTvDq+C15AX757nEVftFpQVC lFEvCjQ2V/E= =OG1r
-----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Tarek Ziadé | Association AfPy | www.afpy.org Blog FR | http://programmation-python.org Blog EN | http://tarekziade.wordpress.com/
participants (4)
-
Jesus Cea
-
Phillip J. Eby
-
Tarek Ziadé
-
Zooko O'Whielacronx