Browse Source

setup.py: use find_packages more heavily

No change in behaviour as-is.
In the future, if we add a new folder with an __init__.py file, it will get included by default,
whereas in the past it would not.
i.e. this is changing what we manually have to specify from a whitelist to a blacklist.
patch-4
SomberNight 3 years ago
parent
commit
92ff7de756
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 12
      setup.py

12
setup.py

@ -70,15 +70,9 @@ setup(
python_requires='>={}'.format(MIN_PYTHON_VERSION),
install_requires=requirements,
extras_require=extras_require,
packages=[
'electrum',
'electrum.qrreader',
'electrum.gui',
'electrum.gui.qt',
'electrum.gui.qt.qrreader',
'electrum.gui.qt.qrreader.qtmultimedia',
'electrum.plugins',
] + [('electrum.plugins.'+pkg) for pkg in find_packages('electrum/plugins')],
packages=(['electrum',]
+ [('electrum.'+pkg) for pkg in
find_packages('electrum/', exclude=["tests", "gui.kivy", "gui.kivy.*"])]),
package_dir={
'electrum': 'electrum'
},

Loading…
Cancel
Save