Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c67a15d8
Commit
c67a15d8
authored
Dec 14, 2007
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug #1628
The detection now works on Unix with Makefile, Makefile with VPATH and on Windows.
parent
90921cc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Lib/distutils/sysconfig.py
Lib/distutils/sysconfig.py
+4
-2
Lib/distutils/tests/test_sysconfig.py
Lib/distutils/tests/test_sysconfig.py
+1
-1
No files found.
Lib/distutils/sysconfig.py
View file @
c67a15d8
...
...
@@ -31,8 +31,10 @@ if os.name == "nt" and "pcbuild" in project_base[-8:].lower():
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
# different (hard-wired) directories.
python_build
=
os
.
path
.
isfile
(
os
.
path
.
join
(
project_base
,
"Modules"
,
"Setup.local"
))
# Setup.local is available for Makefile builds including VPATH builds,
# Setup.dist is available on Windows
python_build
=
any
(
os
.
path
.
isfile
(
os
.
path
.
join
(
project_base
,
"Modules"
,
fn
))
for
fn
in
(
"Setup.dist"
,
"Setup.local"
))
def
get_python_version
():
...
...
Lib/distutils/tests/test_sysconfig.py
View file @
c67a15d8
...
...
@@ -15,7 +15,7 @@ class SysconfigTestCase(unittest.TestCase):
def
test_get_python_lib
(
self
):
lib_dir
=
sysconfig
.
get_python_lib
()
# XXX doesn't work on
I
nux when Python was never installed before
# XXX doesn't work on
Li
nux when Python was never installed before
#self.assert_(os.path.isdir(lib_dir), lib_dir)
# test for pythonxx.lib?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment