-
Notifications
You must be signed in to change notification settings - Fork 3k
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
--compiler build option on windows #18
Comments
I could solve the problem adding:
to the file distutils.cfg in C:\Python27\Lib\distutils\
compilers-on-windows config-files
|
I would also like to see pip support a --build-option for the same reason. I
|
I wonder does '--install-option' meet your requirements? I have not tried it,
install
setup.py
directory
|
Using --install-option in the following manner doesn't currently work. I still C:\tools>pip --version pip 0.8.2 from c:\python27\lib\site- C:\tools>pip install --install-option="--compiler=mingw32" markupsafe Installing collected packages: markupsafe Running setup.py install for error: option --compiler not recognized
|
See also issue #167 |
Thanks vbabiy for the workaround. I too would like to see this option. |
+1 |
1 similar comment
+1 |
+1 |
+1 |
Could somebody from core devs please comment on what's needed to move this forward? Is addition of |
Do you need to give the same options to every build? Can we ask you to do it manually for those non-default builds? Bdist_wheel certainly may not be sophisticated enough to pass the arguments anyway...... Marcus Smith notifications@github.com wrote:
|
what are you suggesting? how manually? I guess somebody can do this?
|
👍 |
is introduction |
It's a terrible hack, but you can abuse
This constructs a command line that looks like
(but if you say I told you to do this, I'll deny everything :-)) I suspect there won't be much change to what's currently available - the long-term goal is to make the build process independent of the install process, and in the meantime, the recommendation is really to build wheels. Either get the project to supply (Windows and/or OSX) wheels on PyPI, or if that's not practical, build wheels yourself locally ( |
@pfmoore So, the current recommended workaround is to download the package, build wheels manually and use the wheels? |
@pradyunsg Yes |
We have a strong reason not to do this (won't add a setuptools specific command to pip) and a workaround for this issue as well. Can this issue be closed as a "won't fix", mentioning both of them in a closing comment? |
Seems reasonable to me, so I'm going to go ahead and close this. If someone wants it I suggest the best path forward is when we work on the abstract build system on distutils-sig, to chime in about wanting a way to control the compiler being used. |
On Windows while installing from source code several packages (psycopg2, PIL, ...) emit an error:
The issue is being fixed by installing MinGW and using mingw32 compiler like this:
As far as I see, it would be very good for PIP to have "--build-option" like "--install-option", so that one could use PIP with mingw32 compiler:
The text was updated successfully, but these errors were encountered: