[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2021-02-03 Thread Steve Dower


Steve Dower  added the comment:

Distutils is now deprecated (see PEP 632) and all tagged issues are being 
closed. From now until removal, only release blocking issues will be considered 
for distutils.

If this issue does not relate to distutils, please remove the component and 
reopen it. If you believe it still requires a fix, most likely the issue should 
be re-reported at https://github.com/pypa/setuptools

--
nosy: +steve.dower
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-19 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

fix-6087.diff passes on OSX (Python 3.6)

$ ./python.exe -m test test_distutils test_sysconfig -j3
Run tests in parallel using 3 child processes
0:00:01 [1/2] test_sysconfig passed
0:00:13 [2/2] test_distutils passed
All 2 tests OK.

Total duration: 14 sec
Tests result: SUCCESS

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-18 Thread Vinay Sajip

Vinay Sajip added the comment:

Updated patch to cover tests, and changed the implementation slightly. Tests 
pass on Linux and Windows (I'm not able to build on OS X). The patch is against 
the default branch but the diff should apply equally well to 3.6.

--
Added file: http://bugs.python.org/file44737/fix-6087.diff

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-13 Thread Vinay Sajip

Vinay Sajip added the comment:

> Ok, so we need to figure out whether the tests are wrong, or the 'fix' is 
> wrong.

The tests were never updated, so most likely they will need changing. I was 
waiting for feedback about my point about _CONFIG_VARS['srcdir'], but I never 
got any at the time ... will look at updating the patch with updated tests.

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Test output:

[cpython.25567]$ ./python.exe -m test test_distutils test_sysconfig -j3
Run tests in parallel using 3 child processes
0:00:01 [1/2/1] test_sysconfig failed
test test_sysconfig failed -- Traceback (most recent call last):
  File "/Users/kesara/pycon/cpython.25567/Lib/test/test_sysconfig.py", line 
283, in test_user_similar
self.assertEqual(user_path, global_path.replace(base, user, 1))
AssertionError: '/Users/kesara/.local/lib/python3.6' != 
'/Users/kesara/pycon/cpython.25567/Lib'
- /Users/kesara/.local/lib/python3.6
+ /Users/kesara/pycon/cpython.25567/Lib
0:00:05 [2/2/2] test_distutils failed
test test_distutils failed -- Traceback (most recent call last):
  File 
"/Users/kesara/pycon/cpython.25567/Lib/distutils/tests/test_sysconfig.py", line 
40, in test_get_python_lib
sysconfig.get_python_lib(prefix=TESTFN))
AssertionError: '/Users/kesara/pycon/cpython.25567/Lib' == 
'/Users/kesara/pycon/cpython.25567/Lib'

2 tests failed:
test_distutils test_sysconfig

Total duration: 6 sec
Tests result: FAILURE

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Robert Collins

Robert Collins added the comment:

Ok, so we need to figure out whether the tests are wrong, or the 'fix' is wrong.

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

These patches break both test_distutils & test_sysconfig tests.

--

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Updated patch based on vinay.sajip's patch.

--
Added file: http://bugs.python.org/file44617/6087_sysconfig.diff

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

Updated patch based on vinay.sajip's patch.

--
Added file: http://bugs.python.org/file44616/6087_distutils_sysconfig.diff

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-12 Thread Kesara Rathnayake

Kesara Rathnayake added the comment:

This issue still exists in Python 3.7.

--
nosy: +kesara
versions: +Python 3.7

___
Python tracker 

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2015-07-22 Thread Robert Collins

Robert Collins added the comment:

Moving this back to patch review since I'm 90% sure that the patch won't apply 
anymore (if I had a little more time I'd pull it down and double check) - but 
I've hit this myself and would totally commit it if updated.

--
nosy: +rbcollins
stage: commit review - patch review
versions: +Python 3.6

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2014-07-05 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 2.7, Python 3.2, Python 3.3

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-11-03 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I’m not sure yet whether this is a bug or a new feature, but when python runs 
 from an
 uninstalled build, I would like paths to refer to the source directory, not 
 the default
 configure prefix.

I need this fixed for packaging and it may affect venv too, so I will consider 
it a bug, fix it and wait for the python-dev response :)

--
versions:  -Python 3.1

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-06-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

See also #12141.

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-04-01 Thread Carl Meyer

Changes by Carl Meyer c...@dirtcircle.com:


--
nosy: +carljm

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-31 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Actually, the makefile location *is* wrong - ignore my last comment 
contradicting that.

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-31 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I’m not sure yet whether this is a bug or a new feature, but when python runs 
from an uninstalled build, I would like paths to refer to the source directory, 
not the default configure prefix.

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-28 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Attached is a simple script to show include and lib paths.

The makefile location seems OK on my system.

--
Added file: http://bugs.python.org/file21437/libdir.py

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

get_makefile_filename also fails when run from a checkout.

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-20 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The patches look good, thank you.  Do you have a command, script or test that 
would print the values, to make sure they’re right?

--
assignee: tarek - eric.araujo
keywords: +buildbot, needs review -easy, patch
nosy:  -alexis
versions: +Python 3.3

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-03-20 Thread Éric Araujo

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


--
keywords: +easy, patch -buildbot, needs review
nosy: +alexis
stage:  - commit review

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2011-02-13 Thread Alexis Metaireau

Changes by Alexis Metaireau ametair...@gmail.com:


--
nosy: +alexis

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-29 Thread Éric Araujo

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


--
versions: +3rd party

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-13 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Attached is a patch for distutils/sysconfig.py.

--
keywords: +patch
Added file: http://bugs.python.org/file18866/distutils_sysconfig.diff

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-13 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Attached is a patch for sysconfig.py.

--
Added file: http://bugs.python.org/file18867/sysconfig.diff

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-13 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

N.B. without the sysconfig.py patch, sysconfig.get_path() fails, but 
differently.

With the patch, sysconfig.get_path('stdlib') and sysconfig.get_path('include') 
give the expected values, but _CONFIG_VARS['srcdir'] still seems wrong:

vi...@eta-jaunty:/tmp$ python3.2
Python 3.2a2+ (py3k:84759, Sep 13 2010, 05:14:55) 
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for more information.
 import sysconfig
 sysconfig._CONFIG_VARS['srcdir']
'/tmp'
 

Someone please take a look!

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-12 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Can you propose a patch?  Also, can you say if the bug exists with the new 
sysconfig.get_path in 2.7 and 3.2?  (I can’t test right now, I ./configure with 
a --prefix, which logically gets used in the paths).

--
components: +Distutils2
versions: +Python 3.1 -Python 2.6

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-08 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Just plain

./configure

as far as I remember.

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-08 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-07 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

What ./configure line did you use?

--

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-04-09 Thread Ray.Allen

Ray.Allen ysj@gmail.com added the comment:

Yes, I agree with you, this may be a bug? 

Seemingly, the sysconfig.get_python_lib() should act just like the 
get_python_inc() function, return [prefix]/lib/python[version] in case of 
python_build flag is False, and [prefix]/Lib in case of python_build flag 
is True.

--
nosy: +ysj.ray
versions: +Python 3.2 -Python 2.6, Python 2.7

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-04-09 Thread Ray.Allen

Changes by Ray.Allen ysj@gmail.com:


--
versions: +Python 2.7 -Python 3.2

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-04-09 Thread Ray.Allen

Changes by Ray.Allen ysj@gmail.com:


--
versions: +Python 2.6, Python 3.2

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-04-08 Thread Éric Araujo

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


--
nosy: +merwok

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



[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2009-05-22 Thread Vinay Sajip

New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:

When used with a build from source (i.e. non-installed) of Python,
get_python_lib gives the result (on Linux)

[prefix]/lib/python[version]

Shouldn't this be [prefix]/Lib?

Note that get_python_inc() returns Include. That's because it makes
use of the python_build flag which is set for builds from source.

--
assignee: tarek
components: Distutils
keywords: easy
messages: 88194
nosy: tarek, vsajip
priority: normal
severity: normal
status: open
title: distutils.sysconfig.get_python_lib gives surprising result when used 
with a Python build
type: behavior
versions: Python 2.6, Python 2.7

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