distutils build process fails when installing from source directly #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When installing from source directly without the annoying cpyint submodule that can't be checked out of course:
....
error: option --single-version-externally-managed not recognized
Rolling back uninstall of mysql-connector-python/
....
When installing with this branch, it works fine. Also when building a wheel and then installing the wheel it seems to work fine with master, but was explained below.
I read up on distutils vs setuptools a bit:
http://stackoverflow.com/questions/25337706/setuptools-vs-distutils-why-is-distutils-still-a-thing
Noticed that "Even for projects that do choose to use distutils, when pip installs such projects directly from source (rather than installing from a prebuilt wheel file), it will actually build your project using setuptools instead."
I'm not sure of all the build options as I'm not extremely familiar with distutils, but seems that using them directly is not encouraged in many cases and that setuptools adds more metadata to packages and wraps distutils. I've verified that for my simple python only installation still works and is identical as before, and built with the option --with-mysql-capi= and seemed to build just fine as well.