setup.py - Using 3rd Party Libraries in Python -
setup.py - Using 3rd Party Libraries in Python -
i'm writing simple python (2.7) programme using python image library. how can create programme portable, can run in on computer (that doesn't have pil installed).
i've looked creating setup.py file, i'm not sure on right track.
ok, sounds setup.py right way go here - should have setup() function in it, add together install_requires entry so:
setup( name="mypkg", version="0.0.1", # etc etc blah blah blabh install_requires=["pil"], )
that should it! when users run setup.py install, download pil & run pil's own installation routine.
python setup.py python-imaging-library
Comments
Post a Comment