Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eabase opened this issue Nov 24, 2020 · 0 comments
Open

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

eabase opened this issue Nov 24, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@eabase
Copy link
Owner

eabase commented Nov 24, 2020

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:

@eabase eabase added the enhancement New feature or request label Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant