[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2014-06-25 Thread Martin v . Löwis

Martin v. Löwis added the comment:

The issue was never really valid (except perhaps for the desire to document 
this more clearly), so closing.

Anybody who would like to see the documentation improved, please suggest a 
specific change.

--
resolution:  - not a bug
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2014-06-06 Thread Mark Lawrence

Mark Lawrence added the comment:

Given that we're already using VC++ 2010 for 3.4 and there is discussion here 
http://code.activestate.com/lists/python-dev/131023/ about changing for 3.5 can 
this be closed?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2010-11-25 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file13060/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2010-11-25 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2010-08-08 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-02 Thread Martin v. Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Whether VC++ 2008 is required very much depends on what precisely you do
in your extension. If you use a different compiler (in particular, a
different CRT), chances are fair that the resulting extension crashes
the interpreter. Users using a different compiler must understand the
issues, and understand why it is safe to use a different CRT.

Hence, I'm not sure that simplifying switching to a different compiler
is a good thing - it will likely lead to more frustration because the
resulting binaries fail in strange ways.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-02 Thread Roumen Petrov

Changes by Roumen Petrov bugtr...@roumenpetrov.info:


--
nosy: +rpetrov

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-03-01 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
components: +Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-02-12 Thread Eric Swenson

New submission from Eric Swenson e...@swenson.org:

Building python extensions using distutils in python 2.6 with only VC++ 
2005 installed no longer works.  

distutils appears to require VC++ 2008.  The documentation on building 
extensions for Python 2.6 seems to suggest that VC++ 2008, while 
preferred, is not required and that it should be possible to build 
extensions with VC++ 2005.

distutils appears to look for vcvarsall.bat in the VC++ 9.0 directories. 
It decides to use 9.0 based on the return value of 
distutils.msvc9compiler.find_build_version, which returns 9.0 -- 
presumably because python 2.6 was built on VC++ 9.0 (2008).  Why is does 
it no longer search for older versions of VC++ (like 2005)?  Is this a 
bug in distutils?  

If VC++ 2008 (9.0) is required to build extensions, then the python 2.6 
web site should make this clear.

--
assignee: tarek
components: Distutils
messages: 81833
nosy: eswenson, tarek
severity: normal
status: open
title: distutils seems to only work with VC++ 2008 (9.0)
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-02-12 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

distutils will use the same compiler used to build Python.

If you want to build with a previous version of MSVC, you need to 
compile Python with that particular version.

That said, MSVCCompiler could probably take new options, to force the
MSVC version and the arch.

This is in theory. Are you willing to help me build that patch ?

Some tests on your system would be appreciated.

--
priority:  - normal
type:  - feature request
versions: +Python 2.7, Python 3.1 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2009-02-12 Thread Eric Swenson

Eric Swenson e...@swenson.org added the comment:

Hi Tarek,
I have been debugging this and found the following:
If you set the DISTUTILS_USE_SDK environment variable to any value (I used
DISTUTILS_USE_SDK=1) and the MSSdk environment variable to anything (I used
MSSdk=1), and you manually run the vcvarsall.bat file that a VC++ user
should find in his c:/Program Files/Visual Studio 8/VC directory, then
easy_install/setuptools/distutils works fine for building extensions.

It would appear that if you set those environment variables, and the
cl.exe, and link.exe, etc. commands can be found on the path (the
vcvarsall.bat file would have done this), then distutils.MSVCompiler
(msvc9compiler) is perfectly happy to build the extension.

That said, I think it would be nice to have a means of making this more
painless.  I'm more than happy to help out.  If you have things for me to
try/test, I'll be happy to do that.  Since the compiler class is located
automatically, and I don't know much about distutils, I don't, off the top
of my head, know how to elegantly provide options to the not-yet-determined
compiler class.  (I'm sure you could point me in the right direction...)

I have a vmware VM setup with windows xp, python 2.6, and VC++ 2008 to use
for testing, so please let me know how I can best be of assistance.

Thanks. -- Eric

On Thu, Feb 12, 2009 at 3:20 PM, Tarek Ziadé rep...@bugs.python.org wrote:


 Tarek Ziadé ziade.ta...@gmail.com added the comment:

 distutils will use the same compiler used to build Python.

 If you want to build with a previous version of MSVC, you need to
 compile Python with that particular version.

 That said, MSVCCompiler could probably take new options, to force the
 MSVC version and the arch.

 This is in theory. Are you willing to help me build that patch ?

 Some tests on your system would be appreciated.

 --
 priority:  - normal
 type:  - feature request
 versions: +Python 2.7, Python 3.1 -Python 2.6

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue5235
 ___


Added file: http://bugs.python.org/file13060/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5235
___Hinbsp;Tarek,divbr/divdivI have been debugging this and found the 
following:divbr/divdivIf you set the DISTUTILS_USE_SDK environment 
variable to any value (I used DISTUTILS_USE_SDK=1) and the MSSdk environment 
variable to anything (I used MSSdk=1), and you manually run the 
quot;vcvarsall.batquot; file that a VC++ user should find in his 
quot;c:/Program Files/Visual Studio 8/VCquot; directory, then 
easy_install/setuptools/distutils works fine for building extensions./div
divbr/divdivIt would appear that if you set those environment 
variables, and the quot;cl.exequot;, and quot;link.exequot;, etc. commands 
can be found on the path (the vcvarsall.bat file would have done this), then 
distutils.MSVCompiler (msvc9compiler) is perfectly happy to build the 
extension./div
divbr/divdivThat said, I think it would be nice to have a means of 
making this more painless. nbsp;I#39;m more than happy to help out. nbsp;If 
you have things for me to try/test, I#39;ll be happy to do that. nbsp;Since 
the compiler class is located automatically, and I don#39;t know much about 
distutils, I don#39;t, off the top of my head, know how to elegantly provide 
options to the not-yet-determined compiler class. nbsp;(I#39;m sure you could 
point me in the right direction...)/div
divbr/divdivI have a vmware VM setup with windows xp, python 2.6, and 
VC++ 2008 to use for testing, so please let me know how I can best be of 
assistance./divdivbr/divdivThanks. -- Ericbrbrdiv 
class=gmail_quote
On Thu, Feb 12, 2009 at 3:20 PM, Tarek Ziadé span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex;
br
Tarek Ziadé lt;a 
href=mailto:ziade.ta...@gmail.com;ziade.ta...@gmail.com/agt; added the 
comment:br
br
distutils will use the same compiler used to build Python.br
br
If you want to build with a previous version of MSVC, you need tobr
compile Python with that particular version.br
br
That said, MSVCCompiler could probably take new options, to force thebr
MSVC version and the arch.br
br
This is in theory. Are you willing to help me build that patch ?br
br
Some tests on your system would be appreciated.br
br
--br
priority: nbsp;-gt; normalbr
type: nbsp;-gt; feature requestbr
versions: +Python 2.7, Python 3.1 -Python 2.6br
divdiv/divdiv class=Wj3C7cbr
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue5235; 
target=_blankhttp://bugs.python.org/issue5235/agt;br