[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-15 Thread Jyrki Wahlstedt

Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment:

For some reason I unintentionally managed to change status, putting it back to 
pending.

--
status: open - pending

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-15 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Thanks for investigation why MacPorts can use duplicate flags.

My patch is in the repository and will be in the next releases of all 4 
actively maintained branches.

--
status: pending - closed

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-12 Thread Jyrki Wahlstedt

Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment:

Ok,
here's a bit of the missing information:
- as per the first message, I'm not using command line to build, I use MacPorts 
(having been able to build 2.5, 2.6, and 3.1 with no problems)
- I checked some of internal workings (by asking), and MacPorts gives the 
architecture arguments in several of the make process flags, compilation and 
link, so the multiple flags come from that
- after port configure, there are duplicate architecture flags in Makefile, 
which seems to just the way the change has been checked

So, thanks for putting this in (appear with the next release?)

--
status: pending - open

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-11 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Committed a fix in r82791 (2.7), r82797 (2.6), r82796 (3.2), r82800 (3.1)

Tested by running configure and then patching the Makefile to include duplicate 
arch flags before running make.

--
resolution:  - accepted
stage:  - committed/rejected
status: open - pending

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-08 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Jyrki: could you please explain how you build Python to get the behavior you're 
seeing?  The most important bit: what is the exact command-line that is used to 
run the configure script, and what is the contents of the environment while 
doing that.

I'm adding 3.2 to the version list because that uses the same code.

I'll apply the patch soon, but would prefer to know how to correctly reproduce 
the issue before doing so.

--
versions: +Python 3.2

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-08 Thread Jyrki Wahlstedt

Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment:

Well, the background here is that at MacPorts the builds are done using 
Portfiles (I maintain some), and it seems that the current way of getting 
things configured and built leads to redundant, extraneous arch arguments.
I don't know the internals of port system that well as to be able to explain, 
how the arguments are collected.
I am starting to investigate port command to see, if something can be done 
there.
Then, duplicate arguments are not illegal, may be seen elsewhere also, so if 
this can be dealt with cleanly, I'm happy.
I check the configure logs this evening.

--

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-07 Thread Jyrki Wahlstedt

Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment:

The same line appears in Lib/distutils/util.py, line 148, and requires to be 
treated the same.
These are the changes I had to make to get the build done for both 32- and 
64-bit architectures.

--

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

How do you build the univeral binary. I regularly build multiple arch builds 
using the builtin support for that (--enable-universalsdk=/ 
--enable-univeral-archs=3-way) and don't need a patch for that.

--

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-07 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

BTW. A cleaner replacement is:

archs = tuple(sorted(set(archs)))

(That is, sorted works on arbitrary iterables)



Tarek: is using set() acceptable in the distutils sources?

--
nosy: +tarek

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-07 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

sorted() and set() were introduced in Python 2.4.

If your code will not run in Python 2.3 anyway, then using those should be fine.

The only other place currently using set() is the MSVC9 compiler code. sorted() 
is not used at all in distutils. list.sort() should do the trick as well in 
your code - I'm not sure why you need a tuple for the args.

Note that Python 2.3 did have the set type, however, it was only available 
through the sets module as Set. Using a conditional import from sets 
import Set as set for Python 2.3 would get you the set() builtin in Python 2.3 
as well.

--
nosy: +lemburg

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-07 Thread Tarek Ziadé

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

Since there will be no standalone release of this code, no worries

--

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-06 Thread Jyrki Wahlstedt

Jyrki Wahlstedt jyrki.wahlst...@wahlstedt.fi added the comment:

The fix could be something like replace line 649 in sysconfig.py:

archs = tuple(archs)

with:

archs = tuple(sorted(list(set(archs

This removes the duplicates, but as transforming the list to set does not seem 
to keep order, it is necessary to sort the list (hence the previous line 
sorting the list could be dropped perhaps).

--
title: 2.7 sysconfig should handle arch duplicates - 2.7 sysconfig should 
handle arch duplicates while building universal on OS X

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



[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

2010-07-06 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren

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