Comments (6)
did you clone recursively to include the xdelta
submodule?
from xdelta3-python.
I believe the pip clones recursively by default.
I get this error on both branches: fix-large-decode
and master
This is the output from pip install -e git+https://github.com/samuelcolvin/xdelta3-python.git@fix-large-decode
:
Collecting xdelta3
Cloning https://github.com/samuelcolvin/xdelta3-python.git (to revision fix-large-decode) to /tmp/pip-install-_2q86lxq/xdelta3
Running command git clone -q https://github.com/samuelcolvin/xdelta3-python.git /tmp/pip-install-_2q86lxq/xdelta3
Running command git checkout -b fix-large-decode --track origin/fix-large-decode
Switched to a new branch 'fix-large-decode'
Branch 'fix-large-decode' set up to track remote branch 'fix-large-decode' from 'origin'.
Running command git submodule update --init --recursive -q
Building wheels for collected packages: xdelta3
Building wheel for xdelta3 (setup.py): started
Building wheel for xdelta3 (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_2q86lxq/xdelta3/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_2q86lxq/xdelta3/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-_1h2i_gv --python-tag cp37
cwd: /tmp/pip-install-_2q86lxq/xdelta3/
Complete output (20 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/xdelta3
copying xdelta3/__init__.py -> build/lib.linux-x86_64-3.7/xdelta3
copying xdelta3/version.py -> build/lib.linux-x86_64-3.7/xdelta3
copying xdelta3/main.py -> build/lib.linux-x86_64-3.7/xdelta3
copying xdelta3/_xdelta3.c -> build/lib.linux-x86_64-3.7/xdelta3
running build_ext
building '_xdelta3' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/xdelta3
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DSIZEOF_SIZE_T=8 -DSIZEOF_UNSIGNED_LONG_LONG=8 -DXD3_USE_LARGEFILE64=1 -I./xdelta3/lib -I/usr/local/include/python3.7m -c xdelta3/_xdelta3.c -o build/temp.linux-x86_64-3.7/xdelta3/_xdelta3.o
xdelta3/_xdelta3.c:3:10: fatal error: xdelta3.h: No such file or directory
#include "xdelta3.h"
^~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for xdelta3
Running setup.py clean for xdelta3
Failed to build xdelta3
from xdelta3-python.
then perhaps you need xdelta3
installed locally before attempting to install xdelta3-python
. I'm afraid I haven't work on this for a long time, so can't really help.
from xdelta3-python.
Thanks for looking at it - I wouldn't remember what I ate for breakfast yesterday.
This is what I found so far:
- After the failed package install using -e, the git repo is cloned under src/xdelta3 folder. If I first run
make
in that folder (this copies in the c header files) thenpython setup.py develop
(this is the command that is failing inpip install
) it works. - How do I make the package installation issue
make
beforepython setup.py develop
?
from xdelta3-python.
You can't I'm afraid. So your options are:
- Fix wheel build in Travis and I'll release a new version with binaries. cibuildwheel will be your friend here.
- Clone the repo and build the wheel you need. You can then, install that locally or distribute the file to install elsewhere.
from xdelta3-python.
Or in theory you could edit setup.py
to do what make prepare
does, but that's pretty ugly.
from xdelta3-python.
Related Issues (10)
- Disabling secondary compression HOT 11
- DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats HOT 1
- DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats HOT 9
- It's 2021, you should be using python 3.10 by now anyway HOT 5
- xdelta3.XDeltaError: Output of decoding delta longer than expected HOT 12
- Does the encode method have the distributive property? HOT 7
- Windows support would be nice HOT 5
- Support memoryview ranges in decode and encode HOT 1
- delta size different from xdelta-cli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xdelta3-python.