Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
62a6348b
Commit
62a6348b
authored
Apr 23, 2010
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some SCons fixups
parent
eea6a477
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
Tools/site_scons/site_tools/cython.py
Tools/site_scons/site_tools/cython.py
+0
-1
Tools/site_scons/site_tools/pyext.py
Tools/site_scons/site_tools/pyext.py
+12
-9
No files found.
Tools/site_scons/site_tools/cython.py
View file @
62a6348b
...
@@ -41,7 +41,6 @@ def create_builder(env):
...
@@ -41,7 +41,6 @@ def create_builder(env):
return
cython
return
cython
def
cython_suffix_emitter
(
env
,
source
):
def
cython_suffix_emitter
(
env
,
source
):
print
'emitter called'
return
"$CYTHONCFILESUFFIX"
return
"$CYTHONCFILESUFFIX"
def
generate
(
env
):
def
generate
(
env
):
...
...
Tools/site_scons/site_tools/pyext.py
View file @
62a6348b
...
@@ -178,13 +178,13 @@ def set_configuration(env, use_distutils):
...
@@ -178,13 +178,13 @@ def set_configuration(env, use_distutils):
# We define commands as strings so that we can either execute them using
# We define commands as strings so that we can either execute them using
# eval (same python for scons and distutils) or by executing them through
# eval (same python for scons and distutils) or by executing them through
# the shell.
# the shell.
dist_cfg
=
{
'PYEXTCC'
:
"sysconfig.get_config_var('CC')"
,
dist_cfg
=
{
'PYEXTCC'
:
(
"sysconfig.get_config_var('CC')"
,
False
)
,
'PYEXTCFLAGS'
:
"sysconfig.get_config_var('CFLAGS')"
,
'PYEXTCFLAGS'
:
(
"sysconfig.get_config_var('CFLAGS')"
,
True
)
,
'PYEXTCCSHARED'
:
"sysconfig.get_config_var('CCSHARED')"
,
'PYEXTCCSHARED'
:
(
"sysconfig.get_config_var('CCSHARED')"
,
False
)
,
'PYEXTLINKFLAGS'
:
"sysconfig.get_config_var('LDFLAGS')"
,
'PYEXTLINKFLAGS'
:
(
"sysconfig.get_config_var('LDFLAGS')"
,
True
)
,
'PYEXTLINK'
:
"sysconfig.get_config_var('LDSHARED')"
,
'PYEXTLINK'
:
(
"sysconfig.get_config_var('LDSHARED')"
,
False
)
,
'PYEXTINCPATH'
:
"sysconfig.get_python_inc()"
,
'PYEXTINCPATH'
:
(
"sysconfig.get_python_inc()"
,
False
)
,
'PYEXTSUFFIX'
:
"sysconfig.get_config_var('SO')"
}
'PYEXTSUFFIX'
:
(
"sysconfig.get_config_var('SO')"
,
False
)
}
from
distutils
import
sysconfig
from
distutils
import
sysconfig
...
@@ -193,8 +193,11 @@ def set_configuration(env, use_distutils):
...
@@ -193,8 +193,11 @@ def set_configuration(env, use_distutils):
ifnotset
(
env
,
'PYEXTINCPATH'
,
sysconfig
.
get_python_inc
())
ifnotset
(
env
,
'PYEXTINCPATH'
,
sysconfig
.
get_python_inc
())
if
use_distutils
:
if
use_distutils
:
for
k
,
v
in
dist_cfg
.
items
():
for
k
,
(
v
,
should_split
)
in
dist_cfg
.
items
():
ifnotset
(
env
,
k
,
eval
(
v
))
val
=
eval
(
v
)
if
should_split
:
val
=
val
.
split
()
ifnotset
(
env
,
k
,
val
)
else
:
else
:
_set_configuration_nodistutils
(
env
)
_set_configuration_nodistutils
(
env
)
...
...
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