-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build/install broken without cython #3162
Comments
Clone with recursive submodules and install from there |
Ref #3138 |
Sorry, my fault. May be it will make a sense to write the link to CONTRIBUTING.txt (the only place where I found |
Yeah, and before it was possible to install
I think that vendoring with submodules is a little step back. Just an opinion. |
GitHub shows the link to the CONTRIBUTING in the side bar when you create an issue or PR |
Make sense. |
Sorry, nevermind |
Try |
Just reproduced everything with |
The problem introduced here 28f1519 by unhiding CCompilerError in setup.py. |
New finding: no actual tests occurs in travis without cython installed. It is installed in all envs AFAICS. I am not a big expert in tox/travis in fact, but it looks like that for me. That's why this regression was not caught by the tests. Should I open new issue for that? |
We should have a clean separation between aiohttp developing mode and usage. So restriction to have a properly prepared environment (cython, submodules, whatever) when hacking aiohttp is perfectly fine. Installing aiohttp from PyPI for usage in a project is different. We have no pure python environment for testing, that's true. I check it manually after every release. |
Is the version without binary extensions at all supposed to be working? If so, I can create an update for setup.py and make it a little bit more sophisticated to check availability of C files and switch between version without-ext/with-c-ext/cython. It will not rely on compiler errors, but will check availability of preprocessed cython files. |
@asvetlov to avoid misunderstanding - what do you mean by |
Please check out PyPI release: https://files.pythonhosted.org/packages/72/6a/5bbf3544fe8de525f4521506b372dc9c3b13070fe34e911c976aa95631d7/aiohttp-3.3.2.tar.gz Generated C files are always here (as well as http_parser from submodule). Version without C extensions should work: we wrote the library this way, do check behavior equality of pure Python and C Accelerator functionality. |
@asvetlov we should probably attach dists to gh releases from CI on publish as well. I've suggested earlier that those could also be used as a synchronization primitive allowing to release all dists simultanously. |
I totally agree with @webknjaz because currently it is confusing situation that you can download "wrong" release tarball. |
Well, technically it's not a release tarball, it's just git-archive |
Tar file on release page is not a release tarball. That's what I name confusion. |
Yes, because it's automatically generated by GitHub for every (tagged?) commit, it's basically |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Latest master cannot be installed without cython.
Expected behaviour
Should install aiohttp even without cython. It worked at least in previous versions.
Actual behaviour
Build failed:
Steps to reproduce
Run
in fresh empty venv.
Your environment
macOS 10.13.6/Python 3.7/empty vevn
I am sure that the problem is OS/Python version independent.
The text was updated successfully, but these errors were encountered: