Comments (12)
Well, that turned up quicker than I expected.
Why do you need to use easy_install rather than pip?
from ptyprocess.
We have legacy buildout recipes and that uses setuptools
from ptyprocess.
Vaguely related - the wheel that has been uploaded to pypi does not work with:
wheel install ptyprocess-0.5.1-py2.py3-none-any.whl
It gets a:
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/veriflow/bin/wheel", line 9, in <module>
load_entry_point('wheel==0.26.0', 'console_scripts', 'wheel')()
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 358, in main
args.func(args)
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 301, in install_f
args.wheel_dirs, args.force, args.list_files)
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 223, in install
wf.install(force=force)
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 268, in install
if self.parsed_wheel_info['Root-Is-Purelib'] == 'true':
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/decorator.py", line 17, in __get__
val = self.wrapped(inst)
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 238, in parsed_wheel_info
return read_pkg_info_bytes(self.zipfile.read(self.wheelinfo_name))
File "/usr/lib/python2.7/zipfile.py", line 935, in read
return self.open(name, "r", pwd).read()
File "/usr/lib/python2.7/zipfile.py", line 630, in read
data = self.read1(n)
File "/usr/lib/python2.7/zipfile.py", line 692, in read1
self._update_crc(data, eof=eof)
File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 463, in _update_crc
raise BadWheelFile("Bad hash for file %r" % ef.name)
wheel.install.BadWheelFile: Bad hash for file 'ptyprocess-0.5.1.dist-info/WHEEL'
It seems to be because the digests in the WHEEL file are hex encoded sha256, rather than urlsafe_base64_encode
ed digests.
(My use case is that we distribute a tarball with all dependencies, and just wheel install *.whl
from the directory)
from ptyprocess.
Oops, thanks for pointing that out, I am indeed generating hashes in the wrong format. I guess pip doesn't check them. I was also unaware that there's a separate wheel
command line tool.
from ptyprocess.
Actually I've used pexpect on a machine where there is no pip and I've used setuptools for installation. For my particular usecase it would be more convenient to be able to do "python setup.py install".
from ptyprocess.
Creating the sdist and loading to pypi would be great
from ptyprocess.
I have put an sdist up so it doesn't inconvenience people while I think more about it.
If anyone's interested, the stopgap script I used to build an sdist is in a gist: https://gist.github.com/takluyver/7c66429a8e7f2b9388b0
from ptyprocess.
Can you please re-register and re-uploading the wheel? there are tools that download and use the wheel if its on pypi, and doesn't fallback to sdist if the wheel is broken.
from ptyprocess.
Yes please, I can't use wheels because some dependency pulls in ptyprocess.
from ptyprocess.
It seems this issue is documenting two separate problems:
-
The lack of an sdist, which has been remedied
-
The fact that the
whl
file for 0.5.1 is not installable bywheel
.
Should we split the issues to make it clearer?
In any case, I'm also having issues with the wheel file hashes.
And on an aside, extracting the wheel on linux, e.g. with the unzip
cmdline, causes the dist-info
directory files to be extracted with no permissions:
$ ls -l ptyprocess-0.5.1.dist-info/
total 12
---------- 1 leonardo leonardo 1275 Jan 1 2016 METADATA
---------- 1 leonardo leonardo 656 Jan 1 2016 RECORD
---------- 1 leonardo leonardo 97 Jan 1 2016 WHEEL
from ptyprocess.
With the release of 0.5.2, I guess everything mentioned in this issue (easy_install-ability/presence of sdist; installability by wheel
) has been solved and this issue can be closed, right?
from ptyprocess.
Thanks!
from ptyprocess.
Related Issues (20)
- isalive(): check process status for non-child process HOT 13
- Incorrect distributive in WHEEL format HOT 1
- 0.5.2 not really released? HOT 1
- PtyProcess.spawn (and thus pexpect) is not safe for use in multithreaded applications HOT 6
- ptyprocess 0.5.1 and 0.5.2 appear to be missing the setup.py file. HOT 2
- Release? HOT 1
- is it possible to PtyProcess.read() without blocking? HOT 3
- PtyProcess.spawn (and thus pexpect) slowdown in close() loop HOT 2
- Rather than closing all the file descriptors, set close on exec on them HOT 3
- PtyProcess.spawn just got slower and can trigger problems HOT 2
- use os.posix_spawn when available (i.e, 3.8) HOT 4
- The preexec_fn should be executed before closing the file descriptors.
- Use stdin in child process HOT 12
- Release? HOT 1
- PtyProcess.read() returns a different value every call HOT 1
- pty cannot read unicode color escapde HOT 2
- The positions of the two arguments in setwinsize function appear to be reversed HOT 2
- test_spawn_sh occasionally fails
- Help to the xonsh shell HOT 6
- ptyprocess.read() does not read last two lines
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 ptyprocess.