Skip to content

Include most recent mtapi DLL's in pip installer #5

@eabase

Description

@eabase

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions