I have a file in “ifcopenshell/_ifcopenshell_wrapper.pyd”, how can I configure my setup.py file to be included in the build? If I copy it manually to “build/win_amd64/_ifcopenshell_wrapper.pyd” the application works correctly.
I publish the solution that I found in case someone has a similar problem at some point. I don’t know if there is a better way to achieve the same result.
from setuptools import setup
setup(
name="MyApp",
version='0.0.1',
options={
'build_apps': {
'include_patterns': [
'ifcopenshell/_ifcopenshell_wrapper.pyd'
],
'rename_paths': {
'ifcopenshell/_ifcopenshell_wrapper.pyd': '_ifcopenshell_wrapper.pyd'
},
}
}
)
1 Like