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:
use
scripts=[]
keyword insetup()
. unfortunately, "executable" must python script.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 pathbin/awesometool
is.another potential solution
data_files
keyword. however, reason data files not copied onsite_packages
installation dir, though runningpython setup.py bdist_wheel
says have been copied.
reference: https://docs.python.org/3/distutils/setupscript.html
Comments
Post a Comment