Skip to content

Working with ways to host a package, C++ extensions and binary distribution

Notifications You must be signed in to change notification settings

hvvka/pypi-native-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Working with ways to host a package, C++ extensions and binary distribution

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published