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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -