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
b1661918
Commit
b1661918
authored
Jun 02, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17095: Fix Modules/Setup *shared* support.
Original patch by Thomas Wouters.
parent
e81c637b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
Misc/NEWS
Misc/NEWS
+5
-0
Modules/getpath.c
Modules/getpath.c
+14
-0
Modules/makesetup
Modules/makesetup
+2
-6
No files found.
Misc/NEWS
View file @
b1661918
...
...
@@ -58,6 +58,11 @@ Library
-
Issue
#
21538
:
The
plistlib
module
now
supports
loading
of
binary
plist
files
when
reference
or
offset
size
is
not
a
power
of
two
.
Build
-----
-
Issue
#
17095
:
Fix
Modules
/
Setup
*
shared
*
support
.
Tests
-----
...
...
Modules/getpath.c
View file @
b1661918
...
...
@@ -734,6 +734,11 @@ calculate_path(void)
bufsz
+=
wcslen
(
zip_path
)
+
1
;
bufsz
+=
wcslen
(
exec_prefix
)
+
1
;
/* When running from the build directory, add room for the Modules
* subdirectory too.
*/
if
(
efound
==
-
1
)
bufsz
+=
wcslen
(
argv0_path
)
+
wcslen
(
L"Modules"
)
+
2
;
buf
=
(
wchar_t
*
)
PyMem_Malloc
(
bufsz
*
sizeof
(
wchar_t
));
if
(
buf
==
NULL
)
{
...
...
@@ -781,6 +786,15 @@ calculate_path(void)
/* Finally, on goes the directory for dynamic-load modules */
wcscat
(
buf
,
exec_prefix
);
/* And, if we run from a build directory, the Modules directory (for
* modules built with Modules/Setup.)
*/
if
(
efound
==
-
1
)
{
wcscat
(
buf
,
delimiter
);
wcscat
(
buf
,
argv0_path
);
wcscat
(
buf
,
separator
);
wcscat
(
buf
,
L"Modules"
);
}
/* And publish the results */
module_search_path
=
buf
;
...
...
Modules/makesetup
View file @
b1661918
...
...
@@ -217,7 +217,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
*
)
src
=
'$(srcdir)/'
"
$srcdir
/
$src
"
;;
esac
case
$doconfig
in
no
)
cc
=
"
$cc
\$
(CCSHARED)
\$
(
CFLAGS)
\$
(
CPPFLAGS)"
;;
no
)
cc
=
"
$cc
\$
(CCSHARED)
\$
(
PY_CFLAGS)
\$
(PY_
CPPFLAGS)"
;;
*
)
cc
=
"
$cc
\$
(PY_CORE_CFLAGS)"
;;
esac
...
...
@@ -229,11 +229,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
esac
for
mod
in
$mods
do
case
$objs
in
*
$mod
.o
*
)
base
=
$mod
;;
*
)
base
=
${
mod
}
module
;;
esac
file
=
"
$srcdir
/
$base
\$
(SO)"
file
=
"
$srcdir
/
$mod
\$
(EXT_SUFFIX)"
case
$doconfig
in
no
)
SHAREDMODS
=
"
$SHAREDMODS
$file
"
;;
esac
...
...
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