Re: [Distutils] bdist_wininst and dependencies with setuptools
At 11:46 PM 9/9/2010 +0200, Manlio Perillo wrote: Il 09/09/2010 23:03, P.J. Eby ha scritto: > At 07:37 PM 9/9/2010 +0200, Manlio Perillo wrote: >> I would like to avoid having to create an all in one installer using >> pyinstalled; is this possible? > > No; bdist_wininst doesn't support dependencies. Is this hard to implement? Well, you'd need to write some C code, or else implement something in a Python post-install script. I'm not sure how difficult that would be, but it's more effort than I'd personally like to put in. What about distutils2? I don't know if they're working on that. > If you need Windows > users to install dependencies, they'll have to use easy_install. (I'd > say "or pip", but pip doesn't support installing pre-built binaries.) > Using easy_install still requires the user to open the command prompt, locate where the easy_install.exe is installed, and run it. This is what I would like to avoid. Then py2exe or some other sort of installer is probably your best bet. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] bdist_wininst and dependencies with setuptools
At 07:37 PM 9/9/2010 +0200, Manlio Perillo wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. Today I was building a package that must be installed on a Windows system (I'm on Linux). I simply did: python setup.py bdist_inst and I was expecting that, when executed on the Windows machine, it would not only install my package, but also all dependencies declared in the setup file. This was not the case. I would like to avoid having to create an all in one installer using pyinstalled; is this possible? No; bdist_wininst doesn't support dependencies. If you need Windows users to install dependencies, they'll have to use easy_install. (I'd say "or pip", but pip doesn't support installing pre-built binaries.) Note that dependencies are all pure Python modules available on pypi, except PyQt (that is installed using the installer provided by riverbank). If everything but PyQt is pure python, then you can just have them install from source using pip or easy_install. (Or, alternatively, build an executable with py2exe.) ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
[Distutils] bdist_wininst and dependencies with setuptools
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. Today I was building a package that must be installed on a Windows system (I'm on Linux). I simply did: python setup.py bdist_inst and I was expecting that, when executed on the Windows machine, it would not only install my package, but also all dependencies declared in the setup file. This was not the case. I would like to avoid having to create an all in one installer using pyinstalled; is this possible? Note that dependencies are all pure Python modules available on pypi, except PyQt (that is installed using the installer provided by riverbank). Thanks Manlio -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyJG1gACgkQscQJ24LbaUTcCgCfRFOCF101mhRfaWCuU+5g41Wj X2EAn2tOiYudntVi06aa9L9IdpNxp5y2 =YiSl -END PGP SIGNATURE- ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
Re: [Distutils] problem with sdist for nested packages
On Sep 8, 2010, at 12:56 PM, P.J. Eby wrote: > At 12:00 PM 9/8/2010 -0400, Doug Hellmann wrote: >> Instead of explicitly listing packages, I use find_package_data() and then >> get the package names from that result. The odd thing is I get a package >> "PyMOTW.ElementTree" but not "PyMOTW.xml.etree.ElementTree". Maybe I'm >> misunderstanding/misusing find_package_data(), since that nested package is >> the only one I'm having problems with. > > You want find_packages(): > > http://peak.telecommunity.com/DevCenter/setuptools#using-find-packages That took care of it. Thanks for the help! Doug ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig