Closed patricktokeeffe closed 10 years ago
I see that requirements.txt
does mention py2exe but it needs to be uncommented on Windows machines. It is not mentioned in setup.py
. Is it pythonic enough to do something like:
OPTS = {
...
'install_requires': ['pyPdf', 'py2exe'] if sys.platform.startswith('win') else ['pyPdf'],
...
}
I should really read in all the dependencies from requirements.txt
into setup.py
and make py2exe
conditional like you showed.
I experienced some hang-ups installing pdfmerge on a win32 XP box with 2.7 (winpython 2.7.6.2). Initially it was a pyPdf dependency (fixed in #7?):
After manually running
pip install pyPdf
it got hung up on py2exe and that module wasn't found by pip:Failed with
easy_install
too:After downloading py2exe from the sourceforge page http://sourceforge.net/projects/py2exe and installing it, I was able to successfully install pdfmerge via pip.
It would be nice to have this dependency resolved automatically but I don't expect that to be easy since neither pip nor easy_install could find py2exe. How about an explicit check during setup with an error message pointing to the sourceforge project page?