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

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -