sdist build: let pip install put ~everything from tar.gz to site-packages
(well, not everything, only files in electrum/ (so e.g. not contrib)) See comment in setup.py. E.g. we have been including the www/ folder in the tar.gz but have not been installing it to site-packages. Now we do. Or we have been including the kivy GUI files in the tar.gz but not installing them. Now we do. I like this because it simplifies setup.py and should be easier to reason about too. should fix #7089 (at least when using the tar.gz)
This commit is contained in:
15
setup.py
15
setup.py
@@ -79,17 +79,10 @@ setup(
|
|||||||
package_dir={
|
package_dir={
|
||||||
'electrum': 'electrum'
|
'electrum': 'electrum'
|
||||||
},
|
},
|
||||||
package_data={
|
# Note: MANIFEST.in lists what gets included in the tar.gz, and the
|
||||||
'': ['*.txt', '*.json', '*.ttf', '*.otf', '*.csv'],
|
# package_data kwarg lists what gets put in site-packages when pip installing the tar.gz.
|
||||||
'electrum': [
|
# By specifying include_package_data=True, MANIFEST.in becomes responsible for both.
|
||||||
'wordlist/*.txt',
|
include_package_data=True,
|
||||||
'locale/*/LC_MESSAGES/electrum.mo',
|
|
||||||
'lnwire/*.csv',
|
|
||||||
],
|
|
||||||
'electrum.gui': [
|
|
||||||
'icons/*',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
scripts=['electrum/electrum'],
|
scripts=['electrum/electrum'],
|
||||||
data_files=data_files,
|
data_files=data_files,
|
||||||
description="Lightweight Bitcoin Wallet",
|
description="Lightweight Bitcoin Wallet",
|
||||||
|
|||||||
Reference in New Issue
Block a user