4 from setuptools
import setup
5 from setuptools
.command
.build_py
import build_py
as build_py_orig
12 here
= os
.path
.abspath(os
.path
.dirname(__file__
))
13 with codecs
.open(os
.path
.join(here
, rel_path
), 'r') as fp
:
20 class build_py(build_py_orig
):
22 def find_package_modules(self
, package
, package_dir
):
23 """Custom module to find package modules.
25 Will strip out any modules which match the glob patters in
28 modules
= super().find_package_modules(package
, package_dir
)
29 return [(pkg
, mod
, file, ) for (pkg
, mod
, file, ) in modules
30 if not any(fnmatch
.fnmatchcase(mod
, pat
=pattern
)
31 for pattern
in exclude
)]