pip - Python package setup script install binary executable -


i have package awesomepkg setup.py. i'd install binary executable awesometool command line along package when users run pip install awesomepkg. have compiled different os versions awesometool, lives in bin/ folder beside setup.py.

however, can't find way configure setup.py. have attempted following:

  1. use scripts=[] keyword in setup(). unfortunately, "executable" must python script.

  2. so try wrap binary in python script using os.system('bin/awesometool') delegate. fails because wrapper script copied somewhere else pip, doesn't know relative path bin/awesometool is.

  3. another potential solution data_files keyword. however, reason data files not copied on site_packages installation dir, though running python setup.py bdist_wheel says have been copied.

reference: https://docs.python.org/3/distutils/setupscript.html


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -