Message11106
I just noted that installing scandir in Jython via pip fails:
bin/pip install scandir
Collecting scandir
Using cached scandir-1.5.tar.gz
Installing collected packages: scandir
Running setup.py install for scandir ... error
Complete output from command /data/workspace/linux/Jython/installer_test/linux_2.7.1/bin/jython -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-88durY/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-wqw0MV-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.java1.8.0_121-2.7
copying scandir.py -> build/lib.java1.8.0_121-2.7
running build_ext
building '_scandir' extension
error: Compiling extensions is not supported on Jython
----------------------------------------
Command "/data/workspace/linux/Jython/installer_test/linux_2.7.1/bin/jython -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-88durY/scandir/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-wqw0MV-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-88durY/scandir/
It tries to build a C-extension, which isn't supported in Jython. However, scandir actually works with Jython if you install it by hand, i.e. without running its setup.py, but just copy scandir.py into a suitable location; it's only the setup that fails.
(scandir has all sorts of fallbacks letting it work without the C-extension; I only tried this on Linux so far however)
I am about to file a separate issue for this, just posting the info here right now, because that also breaks pathlib2 setup via pip. You can however make it work by handcrafted setup for now. |
|
Date |
User |
Action |
Args |
2017-02-22 03:16:48 | stefan.richthofer | set | messageid: <1487733408.04.0.357417968049.issue2475@psf.upfronthosting.co.za> |
2017-02-22 03:16:48 | stefan.richthofer | set | recipients:
+ stefan.richthofer, seletz |
2017-02-22 03:16:47 | stefan.richthofer | link | issue2475 messages |
2017-02-22 03:16:46 | stefan.richthofer | create | |
|