intelhex
intelhex copied to clipboard
pip install mode on scripts
installing w/ pip (7.1.2, setuptools 18.4) on python 2.7.10, the scripts were installed mode 0644 (i.e., not set executable).
Which OS?
Confirmed with Ubuntu + Python 2.7 and 3.4
As a workaround try to install from sources tarball, not from wheels, e.g.
sudo pip3 install intelhex --no-use-wheel
This worked as expected for me on Ubuntu, i.e. scripts are installed into /usr/local/bin and they HAVE executable bit set.
I'm sorry, but I have no idea what's wrong with wheel distribution archive, and more than 30 mins of googling did not reveal any clear hints how can I fix it.
Patche is welcome! though.
Sorry for not working on your issue. I'm looking for a new maintainer for Python IntelHex project. I hope someone will help.
@bialix I'd gladly help maintain this package.
Rebuilding the wheel package can solve the issue
$ pip3 download intelhex==2.2.1
Collecting intelhex==2.2.1
Using cached https://files.pythonhosted.org/packages/bf/77/bf670318b3db325c71e2ac6a90b7bcfdf9fc739b7cf6aebb31715721623e/intelhex-2.2.1-py2.py3-none-any.whl
Saved ./intelhex-2.2.1-py2.py3-none-any.whl
Successfully downloaded intelhex
$ unzip intelhex-2.2.1-py2.py3-none-any.whl
...
$ ls intelhex-2.2.1.data/scripts/ -la
total 44
drwxr-xr-x 2 gitpod gitpod 4096 Feb 4 09:40 .
drwxr-xr-x 3 gitpod gitpod 4096 Feb 4 09:40 ..
-rw-rw-rw- 1 gitpod gitpod 3808 Jan 30 2018 bin2hex.py
-rw-rw-rw- 1 gitpod gitpod 4667 Jan 30 2018 hex2bin.py
-rw-rw-rw- 1 gitpod gitpod 4532 Jan 30 2018 hex2dump.py
-rw-rw-rw- 1 gitpod gitpod 2840 Jan 30 2018 hexdiff.py
-rw-rw-rw- 1 gitpod gitpod 3652 Jan 30 2018 hexinfo.py
-rw-rw-rw- 1 gitpod gitpod 6197 Jan 30 2018 hexmerge.py
$ git clone https://github.com/python-intelhex/intelhex.git github
$ cd github/
$ python3 setup.py bdist_wheel
$ cd dist/
$ unzip intelhex-2.2.1-py2.py3-none-any.whl
$ ls intelhex-2.2.1.data/scripts/ -la
total 44
drwxr-xr-x 2 gitpod gitpod 4096 Feb 4 09:45 .
drwxr-xr-x 3 gitpod gitpod 4096 Feb 4 09:45 ..
-rwxr-xr-x 1 gitpod gitpod 3810 Feb 4 09:45 bin2hex.py
-rwxr-xr-x 1 gitpod gitpod 4669 Feb 4 09:45 hex2bin.py
-rwxr-xr-x 1 gitpod gitpod 4534 Feb 4 09:45 hex2dump.py
-rwxr-xr-x 1 gitpod gitpod 2842 Feb 4 09:45 hexdiff.py
-rwxr-xr-x 1 gitpod gitpod 3654 Feb 4 09:45 hexinfo.py
-rwxr-xr-x 1 gitpod gitpod 6199 Feb 4 09:45 hexmerge.py
The latest pip3 (20.0.2) doesn't have an option named --no-use-wheel
Use pip3 install https://github.com/python-intelhex/intelhex/archive/master.zip
instead
The latest pip3 (20.0.2) doesn't have an option named
--no-use-wheel
I successfully used pip3 install intelhex --force --no-binary :all:
.