python-wheel

How can I make a Python Wheel from an existing native library?

别来无恙 提交于 2019-11-28 18:04:29
问题 Suppose I have a native shared library (.dll or .so), built independently of any Python mechanism, and a Python module using ctypes to interface to the library. Is there a way that I can build those into a .whl package? If so, how? Assuming this is possible, I think I'd need the wheel package installed and to use python setup.py bdist_wheel but what would my setup.py need to look like? I'd like to do this so I can upload Wheels for various platforms into a private package index and be able to

Build a wheel/egg and all dependencies for a python project

≯℡__Kan透↙ 提交于 2019-11-28 15:53:56
In order to stage python project within our corporation I need to make an installable distribution. This should include: An egg or whl for my project An egg or whl for every dependency of the project (optionally) produce a requirements.txt file listing all the installable components for this release Is there an easy plug in, (e.g. an alternative to bdist_wheel) that will not only compile one wheel but also that project's components? Obviously I can script this, but I was hoping that there might be a short-cut that builds the package + dependencies in fewer steps. This needs to work on Python 2

Failed building wheel for spacy

孤街浪徒 提交于 2019-11-28 08:20:57
I'm trying to install spacy by running pip install spacy for python version 3.6.1 but continuously i'm getting errors like below,how to get rid of this issue? previously i was having cl.exe not found error, after that i added visual studio path in environment variables where cl.exe exists. Failed building wheel for spacy Running setup.py clean for spacy Running setup.py bdist_wheel for murmurhash ... error Complete output from command c:\users\sh00428701\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\SH0042~1\\AppData\\Local\\Temp\\pip

Build wheel for a package (like scipy) lacking dependency declaration

左心房为你撑大大i 提交于 2019-11-28 05:59:55
I think it doesn't make a difference here but I'm using Python 2.7. So the general part of my question is the following: I use a separate virtualenv for each of my projects. I don't have administrator access and I don't want to mess with system-installed packages anyway. Naturally, I want to use wheels to speed up package upgrades and installations across the virtualenv s. How can I build a wheel whose dependencies are only met within a specific virtualenv ? Specifically, issuing pip wheel -w $WHEELHOUSE scipy fails with Building wheels for collected packages: scipy Running setup.py bdist

How to force a python wheel to be platform specific when building it?

我怕爱的太早我们不能终老 提交于 2019-11-28 01:11:44
I am working on a python2 package in which the setup.py contains some custom install commands. These commands actually build some Rust code and output some .dylib files that are moved into the python package. An important point is that the Rust code is outside the python package. setuptools is supposed to detect automatically if the python package is pure python or platform specific (if it contains some C extensions for instance). In my case, when I run python setup.py bdist_wheel , the generated wheel is tagged as a pure python wheel: <package_name>-<version>-py2-none-any.whl . This is

How to include external library with python wheel package

风格不统一 提交于 2019-11-27 20:19:23
问题 I want to create package for python that embeds and uses an external library ( .so ) on Linux using the cffi module. Is there standard way to include .so file into python package? The package will be used only internally and won't be published to pypi. I think Wheel packages are the best option - they would create platform specific package with all files ready to be copied so there will be no need to build anything on target environments. 回答1: You can use auditwheel to inject the external

whl is not a supported wheel on this platform

泄露秘密 提交于 2019-11-27 19:27:07
问题 I am new to python, and am trying to install some modules/packages using .whl file. The system does not have access to the internet so everything is local. I'm running RHEL 6.9 64bit 2.6.32-696.10.1.el6.x86_64 Python is version 2.7.12 (altinstalled with 2.6) platform.architecture() ('64bit', 'ELF') I'm running pip 9.0.1 Attempt at installing numpy: # /usr/local/bin/pip2.7 install numpy-1.13.3-cp27-cp27m-manylinux1_x86_64.whl numpy-1.13.3-cp27-cp27m-manylinux1_x86_64.whl is not a supported

Why can I not create a wheel in python?

为君一笑 提交于 2019-11-27 17:11:15
Here are the commands I am running: $ python setup.py bdist_wheel usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'bdist_wheel' $ pip --version pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4) $ python -c "import setuptools; print(setuptools.__version__)" 2.1 $ python --version Python 3.4.1 $ which python /usr/local/bin/python Also, I am running a mac with homebrewed python Here is my setup.py script: https://gist.github.com/cloudformdesign

Error on “pip install -U channels” command using for otree (Running setup.py bdist_wheel for twisted … error)

微笑、不失礼 提交于 2019-11-27 16:21:31
For a project using otree ( http://otree.readthedocs.io/ ) I ran into some problems trying to install Channels in order to make use of real-time functionalities. Because of the long output I tried to figure out the most important parts: For full output see: https://jsfiddle.net/L4ccmr2k/1/ Red marked output & output considered relevant from my side: 1. Building wheels for collected packages: twisted Running setup.py bdist_wheel for twisted ... error 2. creating build/temp.macosx-10.6-intel-3.6 creating build/temp.macosx-10.6-intel-3.6/src creating build/temp.macosx-10.6-intel-3.6/src/twisted

What is the meaning of “Failed building wheel for X” in pip install?

时光怂恿深爱的人放手 提交于 2019-11-27 15:28:34
问题 This is a truly popular question here at SO, but none of the many answers I have looked at, clearly explain what this error really mean, and why it occurs. One source of confusion, is that when (for example) you do pip install pycparser , you first get the error: Failed building wheel for pycparser which is then followed by the message that the package was: Successfully installed pycparser-2.19 . # pip3 install pycparser Collecting pycparser Using cached https://files.pythonhosted.org