New submission from kracekumar ramaraju:
I am using OSX 10.10.5 (14F27) and Python 3.5. Python 3.5 was installed via
brew.
When greenlet is installed inside virtualenv using py3.5 header files are
missing inside /path/to/venv/include/python3.5m. As a result uwsgi is unable to
build with asyncio support
~ brew info python3
python3: stable 3.5.0 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python3/3.4.3 (4721 files, 82M)
Poured from bottle
/usr/local/Cellar/python3/3.4.3_2 (5948 files, 98M)
Built from source
/usr/local/Cellar/python3/3.5.0 (3573 files, 61M) *
Poured from bottle
From:
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python3.rb
==> Dependencies
Build: xz , pkg-config
Required: openssl
Recommended: readline , sqlite , gdbm , xz
Optional: homebrew/dupes/tcl-tk
Steps to reproduce
--
1. Create a venv
$/tmp python3.5 -m virtualenv venv_bug
2. Install greenlet
$/tmp . venv_bug/bin/activate
(venv_bug)$/tmp pip install greenlet
Collecting greenlet
Using cached greenlet-0.4.9.tar.gz
Building wheels for collected packages: greenlet
Running setup.py bdist_wheel for greenlet
Complete output from command /private/tmp/venv_bug/bin/python3.5 -c "import
setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z4gn/T/pip-build-sxtdlufe/greenlet/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" bdist_wheel -d
/var/folders/xk/8lhz2_j91_3758cc65stj5z4gn/T/tmpf6g8rwt_pip-wheel-:
running bdist_wheel
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.macosx-10.10-x86_64-3.5
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/include/python3.5m
-c greenlet.c -o build/temp.macosx-10.10-x86_64-3.5/greenlet.o
creating build/lib.macosx-10.10-x86_64-3.5
clang -bundle -undefined dynamic_lookup
build/temp.macosx-10.10-x86_64-3.5/greenlet.o -o
build/lib.macosx-10.10-x86_64-3.5/greenlet.cpython-35m-darwin.so
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.10-x86_64
creating build/bdist.macosx-10.10-x86_64/wheel
copying build/lib.macosx-10.10-x86_64-3.5/greenlet.cpython-35m-darwin.so ->
build/bdist.macosx-10.10-x86_64/wheel
running install_headers
creating build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data
creating build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data/headers
copying greenlet.h ->
build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data/headers
running install_egg_info
running egg_info
creating greenlet.egg-info
writing top-level names to greenlet.egg-info/top_level.txt
writing greenlet.egg-info/PKG-INFO
writing dependency_links to greenlet.egg-info/dependency_links.txt
writing manifest file 'greenlet.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'greenlet.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'greenlet.egg-info/SOURCES.txt'
Copying greenlet.egg-info to
build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9-py3.5.egg-info
running install_scripts
Traceback (most recent call last):
File "", line 1, in
File
"/private/var/folders/xk/8lhz2_j91_3758cc65stj5z4gn/T/pip-build-sxtdlufe/greenlet/setup.py",
line 101, in
**setuptools_args)
File
"/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py",
line 148, in setup
dist.run_commands()
File
"/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py",
line 955, in run_commands
self.run_command(cmd)
File
"/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py",
line 974, in run_command
cmd_obj.run()
File
"/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line
213, in run
archive_basename = self.get_archive_basename()
File
"/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line
161, in get_archive_basename
impl_tag, abi_tag, plat_tag = self.get_tag()
File
"/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line
155, in get_tag
assert tag == supported_tags[0]
AssertionError
Failed building wheel for greenlet
Failed to build greenlet
Installing collected packages: greenlet
Running setup.py