[issue10262] Add --soabi option to `configure`

2013-11-10 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I think we've had plenty of time to adjust to the abi tags.  Does anybody think 
that nearly 3 years later anything really needs to be done here?

--
resolution:  - wont fix
status: open - closed

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



[issue10262] Add --soabi option to `configure`

2010-12-14 Thread Matthias Klose

Matthias Klose d...@debian.org added the comment:

shouldn't that option work on platforms too, which currently default to not 
using the soabi?  It would make sense for all posix, and macos, maybe not for 
Windows.

--

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



[issue10262] Add --soabi option to `configure`

2010-12-14 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The soabi tag could be useful on Windows as well, for example if some package 
maintainer chooses another version of the compiler, or a custom version of 
MSVCRT.

And FWIW, PyPy currently uses --soabi=pypy-1.4 on all platforms: import foo 
will load foo.pypy-14.so (foo.pypy-14.pyd on Windows). There are also some 
specific abiflags. A difference is that PyPy will also ignore the default 
foo.so, because extension modules built for CPython will likely crash with PyPy.

--

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



[issue10262] Add --soabi option to `configure`

2010-12-14 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Amaury, did you see my suggestion re $SOBASE and $SOEXTRA?

Also, do you think you can write some tests, even if they only run on a single 
platform?

I suspect the Makefile.pre.in part of the patch will have to be updated now.

Please be sure to test your changes with --enable-shared as well to make sure 
everything gets installed correctly.

--

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



[issue10262] Add --soabi option to `configure`

2010-12-13 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

What's the status of this?  It sounds like it something that should be taken 
care of before the 3.2 release, but I know there has been other activity in 
this area and I haven't looked closely enough to understand the issues involved.

--
nosy: +r.david.murray
type:  - feature request

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



[issue10262] Add --soabi option to `configure`

2010-11-30 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Of course, you don't change configure directly, you change configure.in and let 
autoconf update the configure (but you already know that I'm sure :).

The patch looks fairly reasonable, though I haven't tried it.  One question: 
does $SO have the same value after your patch as before?  That's a variable 
available via sysconfig and it looks like you're removing a block of code that 
sets it.

--

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



[issue10262] Add --soabi option to `configure`

2010-11-30 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The value of get_config_var(SO) is the same as before, something like 
.cpython-32.so by default on Linux. (see, I just moved the line SO=.$SOABI$SO 
at the bottom of the patch).

In the C file dynload_shlib.c, I chose the names SO_BASE for the simple 
extension (.so) and SO_EXTRA for the decorated extension (.cpython-32.so)

Is there a way to write unit tests for all this? This would prove that the 
default behavior is the same as before.

--

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



[issue10262] Add --soabi option to `configure`

2010-11-30 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

On Nov 30, 2010, at 10:12 PM, Amaury Forgeot d'Arc wrote:

The value of get_config_var(SO) is the same as before, something like
.cpython-32.so by default on Linux. (see, I just moved the line
SO=.$SOABI$SO at the bottom of the patch).

Cool, thanks.

In the C file dynload_shlib.c, I chose the names SO_BASE for the simple
extension (.so) and SO_EXTRA for the decorated extension (.cpython-32.so)

Since I used SOABI earlier, what do you think about SOBASE and SOEXTRA for
consistency?

Is there a way to write unit tests for all this? This would prove that the
default behavior is the same as before.

It would, but I couldn't think of a way to do that reliably across platform.

--

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



[issue10262] Add --soabi option to `configure`

2010-11-30 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Let's test Linux at least, then.

--

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



[issue10262] Add --soabi option to `configure`

2010-11-29 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
title: Add --disable-abi-flags option to `configure` - Add --soabi option to 
`configure`

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



[issue10262] Add --soabi option to `configure`

2010-11-29 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Here is a first patch that adds the --with-soabi option.
--with-soabi=yes or --with-soabi  sets SOABI to the computed value 
(cpython-32m when I tried it). This is the default behavior on Linux.
--with-soabi=no or --without-soabi  sets SOABI to the empty string, and 
removes the additional searched extensions from imp.get_suffixes().  This is 
the default behavior on all other platforms.
--with-soabi=tag  sets SOABI to the given string.  Then 
imp.get_suffixes() contains the following extensions: [.tag.so, 
module.tag.so, .so, module.so]

The patch is not yet complete, it does not modify the suffixes in the dynload_* 
files for platforms other than Linux.
Windows support will come after. It requires more thoughts because there is no 
Makefile to read at runtime.

But it's the first time I change the ./configure script, so please comment on 
this first patch.

--
Added file: http://bugs.python.org/file19878/with-soabi.patch

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