I'm new to building binaries and am having a problem adding the dnspython
module. Dnspython
sometimes includes some modules dynamically using __import__
and these modules are nested inside other packages. Therefore the find_packages()
does not find the required package.
In my case I need the SRV.py
module which is located in dns/rdtypes/IN/SRV.py
where dns
is the dnspython
package.
The following is my current setup.py:
from setuptools import setup
APP = ['MongoDB.py']
OPTIONS = {
"includes": [],
}
setup(
plugin=APP,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
install_requires=['pyobjc', 'pymongo', 'dnspython'],
)
Since I need the SRV.py
file inside rdtypes
and IN
, I thought I called a requirement like so: dnspython.rdtypes.IN
which did not work. I also tried adding it to the packages(packages=[dnspython, ...]
) which also didn't work.
I have not found anything regarding these nested packages and how to include them, any help would be greatly appreciated.