-
Notifications
You must be signed in to change notification settings - Fork 300
Fix error: option --single-version-externally-managed not recognized
when installing from pip
.
#9
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
Conversation
…` when installing from `pip`.
Hi, thank you for submitting this pull request. In order to consider your code we need you to sign the Oracle Contribution Agreement (OCA). Please review the details and follow the instructions at http://www.oracle.com/technetwork/community/oca-486395.html |
oca-405177-signed.pdf.asc:
|
Begin forwarded message:
|
Hi, there was no response to our request to sign an OCA or confirm the code is submitted under the terms of the OCA. As such this request will be closed. |
If you won't accept my patch and assume responsibility for it, then please ask one of your engineers to fix this independently. It's still a bug. |
Thanks for this patch @posita. It's unfortunate that they didn't merge it in. Hopefully Oracle will get their act together and fix this ASAP. In case anyone else lands here and is trying to find a solution to this problem, I found another workaround which doesn't require a code change.
mysql-connector installs properly if it's installed using bdist_wheel. i.e. Make sure you see this in your pip install output:
|
That's true, @coryvirok, upgrading |
mysql/mysql-connector-python#9 Uncommenting this patch will make `error: option --single-version-externally-managed not recognized` reappear.
* New package: py-mysql-connector * Fixed docstring * 1. Determined that py-setuptools was not needed at all, so removed. 2. Added py-protobuf. Docs seem to imply that only C protobuf library is required; however, the Python setup.py says differently, and some Python code seems to reference protobuf too. I don't know why this worked for me, but it looks like including py-protobuf is the right thing to do. * Applied solution detailed in: mysql/mysql-connector-python#9 Uncommenting this patch will make `error: option --single-version-externally-managed not recognized` reappear. * Clean up / reorder lines * flake8
This patch fixes the following problem when installing using certain versions of
pip
/setuptools
(attempted on Debian jessie):This patch uses a similar technique to llvmlite (explained here). After the patch: