pybitcointools
pybitcointools copied to clipboard
pip install tries to write LICENSE file to /usr/local (on MacOS X 10.12.5)
pip3 install git+https://github.com/vbuterin/pybitcointools
...
running install_data
copying LICENSE -> /usr/local/
error: could not create '/usr/local/LICENSE': Permission denied
I am running into this issue when packaging this library for Fedora.
I ended up with using this patch:
diff --git setup.py setup.py
index e01a9bf..757564b 100644
--- setup.py
+++ setup.py
@@ -13,5 +13,4 @@ setup(name='bitcoin',
packages=['bitcoin'],
scripts=['pybtctool'],
include_package_data=True,
- data_files=[("", ["LICENSE"]), ("bitcoin", ["bitcoin/english.txt"])],
)
Yes, I have a similar problem packaging this for Debian.
The ‘data_files’ declaration does not seem to help anything, because:
- Both those files are included in the source distribution (by being explicitly specified in the manifest).
- The ‘LICENSE’ file is not needed in the binary distribution.
- The ‘english.txt’ file is already included in the binary distribution (because it is collected as part of the ‘bitcoin’ package).
So I have applied essentially the same patch as @hegjon wrote.
Please remove that declaration from the Distutils configuration.