-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We'd like to make the usage of this very easy, so a good start is to include all the latest DLLs from the mtapi repo releases.
In order to make this happen, we need to bake in the correct DLL paths into the setup.py file among the ./libs/*.dll files.
Check where things are going:
python.exe -c "import distutils.sysconfig as a; print(a.get_python_lib());"The trick is to add something like this:
setup(
# [...]
# use: --executable (or -e) to overrride "#!" substitution
scripts=['scripts/xmlproc_parse', 'scripts/xmlproc_val']
# Package Data
packages=['mypkg'],
package_dir={'mypkg': 'src/mypkg'},
package_data={'mypkg': ['data/*.dat']},
# Additional Files
#data_files = [(distutils.sysconfig.get_python_lib(), ["/path/to/the/DLL"])],
data_files = [('', ["/path/to/the/DLL"])],
)Where else?
All about using DLL's in python:
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request