- Host package
-
SimpleHTTPServer
$ python -m http.server $ cd dist $ pip install http://127.0.0.1:8000/lab13-0.0.1.tar.gz
-
pypiserver
$ pip install pypiserver $ pypi-server -p 8080 ./dist $ pip search --index http://localhost:8080 lab13 $ pip install http://localhost:8080/lab13
- Wheel package
-
create
$ python -m pip install --user --upgrade setuptools wheel $ pip install wheel $ python3 setup.py sdist bdist_wheel
-
use
$ pip install dist/lab13-0.0.1-py3-none-any.whl
- Use C/C++ in pythong
-
compile and add library
$ cd example $ python setup.py build $ python setup.py install
- Compile to binary distribution
$ pip install pyinstaller
$ cd example
$ pyinstaller -F functions.py