Including external binaries in python package

I have a python module which basically is a big wrapper (which does more than other things) for an external binary (not python). I would like to include binaries (1 binary for osx, 1 for linux) along with my code. I currently have the following in my setup.py:

package_data={'packagename': ['lib/app-osx/*', 'lib/app-linux/*', 'lib/*.awk']},

and the files are located at:

/packagename
 /lib
  script.awk
  /app-osx/
    app
  /app-linux
    app

I can’t find where they are installed, if at all? Is there a convention for this? I obviously can't use the dependencies for this :(

And then what is the best way to find your location in a python script?

thank

+4
source share
1 answer

, . setup.py:

zip_safe=False
+1

Source: https://habr.com/ru/post/1547667/


All Articles