Distributing Python script which depends on a package -


i wrote script makes use of selenium, installed selenium through pip. there way can distribute script others without having them install selenium through pip?

i looking at:

https://pypi.python.org/pypi/selenium#downloads

would if included source distribution of selenium pypi in project folder? people have click on source distribution's install.py install selenium?

you can use setuptools , use install_requires keyword.

like this:

from setuptools import setup  setup(     # options     install_requires = ['selenium'], ) 

see tutorial here

then when install package/module using pip, selenium installed.


Comments