Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install mode on scripts #2

Open
yarko opened this issue Oct 27, 2015 · 8 comments
Open

pip install mode on scripts #2

yarko opened this issue Oct 27, 2015 · 8 comments
Assignees
Milestone

Comments

@yarko
Copy link

yarko commented Oct 27, 2015

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).

@bialix
Copy link
Member

bialix commented Oct 29, 2015

Which OS?

@bialix
Copy link
Member

bialix commented Mar 11, 2016

Confirmed with Ubuntu + Python 2.7 and 3.4

@bialix
Copy link
Member

bialix commented Mar 14, 2016

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.

@bialix bialix self-assigned this Mar 31, 2016
@bialix bialix added this to the 3.0 milestone Mar 31, 2016
@bialix
Copy link
Member

bialix commented Sep 27, 2019

Sorry for not working on your issue. I'm looking for a new maintainer for Python IntelHex project. I hope someone will help.

@mfiumara
Copy link

mfiumara commented Oct 4, 2019

@bialix I'd gladly help maintain this package.

@xiongyihui
Copy link

xiongyihui commented Feb 4, 2020

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

@xiongyihui
Copy link

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

@rotu
Copy link

rotu commented Jun 24, 2020

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:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants