Skip to content
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

please support the free visual studio sdk compiler #42553

Closed
davidmcnab mannequin opened this issue Nov 4, 2005 · 7 comments
Closed

please support the free visual studio sdk compiler #42553

davidmcnab mannequin opened this issue Nov 4, 2005 · 7 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@davidmcnab
Copy link
Mannequin

davidmcnab mannequin commented Nov 4, 2005

BPO 1348719
Nosy @loewis, @josiahcarlson

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-11-08.18:51:04.000>
created_at = <Date 2005-11-04.23:58:01.000>
labels = ['type-feature', 'library']
title = 'please support the free visual studio sdk compiler'
updated_at = <Date 2005-11-08.18:51:04.000>
user = 'https://bugs.python.org/davidmcnab'

bugs.python.org fields:

activity = <Date 2005-11-08.18:51:04.000>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Distutils']
creation = <Date 2005-11-04.23:58:01.000>
creator = 'davidmcnab'
dependencies = []
files = []
hgrepos = []
issue_num = 1348719
keywords = []
message_count = 7.0
messages = ['54647', '54648', '54649', '54650', '54651', '54652', '54653']
nosy_count = 4.0
nosy_names = ['loewis', 'josiahcarlson', 'kylotan', 'davidmcnab']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue1348719'
versions = []

@davidmcnab
Copy link
Mannequin Author

davidmcnab mannequin commented Nov 4, 2005

Hi,

I noticed, with some pain, that while pythons 2.1 to
2.3 are built with msvc6, and allow for easy
compilation of extensions.

However, the official binary distro of python2.4 for
windows is built with ms vs .net 2003 (version 7.1).

I've tried using the .net framework sdk compiler:
(http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en)
also the Visual C++ Toolkit:
(http://www.microsoft.com/downloads/details.aspx?FamilyID=272be09d-40bb-49fd-9cb0-4bfa122fa91b&DisplayLang=en)
but in both cases, distutils complains that it can't
find a suitable compiler ("error: Python was built with
version 7.1 of visual studio...").

I did some hacking on distutils/msvccompiler.py, and
noticed that this module is searching for certain
registry keys that are only written by the non-free
Visual Studio .NET 2003 compiler.

As it is, this situation imposes on developers a
deterrent against upgrading to python 2.4. There are
millions of msvc6 installations out there, but for
many, the cost of upgrading to msvs .net 2003 is
prohibitive.

I have considered building python2.4 from source using
msvc6 (I notice the project/workspace files are present
in the source), but feel this is unwise because I could
end up building extension modules that are
binary-incompatible with everyone else's python2.4

I (and countless others, I'm sure) would really
appreciate it if the python devs could rework things to
make it possible to build python2.4 extensions using
the free ms compilers mentioned above).

Cheers
david

@davidmcnab davidmcnab mannequin closed this as completed Nov 4, 2005
@davidmcnab davidmcnab mannequin added the stdlib Python modules in the Lib dir label Nov 4, 2005
@davidmcnab davidmcnab mannequin closed this as completed Nov 4, 2005
@davidmcnab davidmcnab mannequin added type-feature A feature request or enhancement stdlib Python modules in the Lib dir labels Nov 4, 2005
@loewis
Copy link
Mannequin

loewis mannequin commented Nov 7, 2005

Logged In: YES
user_id=21627

I don't understand your remark " and allow for easy
compilation of extensions". Don't you need a copy of VC6 for
that? I don't understand how this is inherently different
from VC.NET 2003... only that Microsoft don't longer offers
VC6 for sale.
Many people only have VC.NET available, but no copy of VC6.

Anyway, would you like to contribute patches to make this work?

@davidmcnab
Copy link
Mannequin Author

davidmcnab mannequin commented Nov 8, 2005

Logged In: YES
user_id=35522

Thank you for your reply.

In desperation, I started downloading an evaluation version
of msvs.net 2003 from bittorrent.

But before the download was even halfway complete, I had
already installed mingw on my winbox and sorted out the
intricacies of compiling 3rd party libs, and building
working python extensions, using only mingw.

As a result, I am now free of the shackles of proprietary MS
toolchains, and am comfortable with mingw - especially since
most of the multiplatform 3rd party libs I've seen offer
good build support for MinGW. All my extensions, and others'
extensions I'm using, are now building quite happily with MinGW.

From this perspective, I no longer have interest in being
able to build extensions with MS tools - freeware MSVC
compilers or otherwise. In fact, depending on a proprietary
toolchain to build Free/Opensource software now feels
ludicrous. Therefore, I'd be perfectly comfortable if you
want to close this support ticket.

Cheers
David

@josiahcarlson
Copy link
Mannequin

josiahcarlson mannequin commented Nov 8, 2005

Logged In: YES
user_id=341410

I'm not sure this request should be closed. One of the
reasons that Python 2.4 compilation was switched to the 7.1
compiler was that it was supposed to be possible to compile
Python and extension modules with the free .net compiler.
If users cannot compile with the free .net compiler right
now, then it seems that there is a bit of a problem.

@loewis
Copy link
Mannequin

loewis mannequin commented Nov 8, 2005

Logged In: YES
user_id=21627

I disagree that one of the reasons to use VC 7.1 was that a
free Microsoft compiler was available - it was never one of
the reasons why I considered switching. Instead, the reasons
were:

  • MS no longer ships VC6, so many users only had VC7.1 and
    where requesting that this was used,
  • VC 7.1 solves a few problems, most notably, IPv6 support
    can be built with that compiler, but not with VC6, and
    people where requesting IPv6 support on Windows.

So I agree that this request should be closed; I personally
have no plans to work on it for the next few years.

@kylotan
Copy link
Mannequin

kylotan mannequin commented Nov 8, 2005

Logged In: YES
user_id=206950

I was under the impression that it was possible to build
Python extensions using the free MS tools. Several people in
comp.lang.python have said as much. The original poster of
this bug may wish to check
http://www.vrplumber.com/programming/mstoolkit/ for further
details.

However, if it is now not the case, it is imperative that
someone addresses this. There is little point having a free
language if it requires a non-free compiler (in either sense
of the word) to build the extensions.

@loewis
Copy link
Mannequin

loewis mannequin commented Nov 8, 2005

Logged In: YES
user_id=21627

As the OP points out, you can use a free compiler (mingw).

I'm closing this report: if somebody with an actual, current
need has the wish that Python is changed in some precise and
verifiable way, please submit a new report. There is no
point in guessing what does and doesn't work.

People who are experimenting with this are encouraged to
propose patches, of course.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

0 participants