This project shows:
-
How to create very simple Python 2 package
-
How to test the package by "staging" it into the system's python site-package
-
How to "unstage" the package from the system's python site-package
-
How to install the package into the system's python site-package
-
How to uninstall the package from the system's python site-package
-
Use:
python2 setup.py sdist
to build the source distribution -
Use:
stage.sh
to "stage/deploy" a symlink to the current development dir in the global python2 site-packages directory and register the package to easy_install "database". -
Use:
unstage.sh
to remove the symlink to the current development dir in the global python2 site-packages directory and unregister the package from easy_install "database". -
Use:
install.sh
to install the current development dir package to the global python2 site-packages directory and register the package to easy_install "database". -
Use:
uninstall.sh
to uninstall the current development dir package from the global python2 site-packages directory and unregister the package from easy_install "database". -
Use:
run_test.sh
to test the installation of the package. Look at the output oftest.py
in the console to check whether the package installation/staging is working or not.
If you want to test staging/installing an executable python code, you can uncomment the entry_points
parameter in setup.py
. In Arch Linux, the python entry point executable for the package will be
placed in /usr/bin
. Other distributions/systems may vary.