Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 974 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 974 Bytes

pypi-native-cpp

  1. 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
  1. 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 
  1. Use C/C++ in pythong
  • compile and add library

    $ cd example
    $ python setup.py build
    $ python setup.py install
  1. Compile to binary distribution
$ pip install pyinstaller 
$ cd example
$ pyinstaller -F functions.py