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
af6d93b2
Commit
af6d93b2
authored
Jan 30, 2009
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build refnanny.pyx automatically in runtests.py
parent
3bad2267
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
Cython/Runtime/build.sh
Cython/Runtime/build.sh
+0
-10
runtests.py
runtests.py
+15
-9
No files found.
Cython/Runtime/build.sh
deleted
100755 → 0
View file @
3bad2267
# Temporary hacky script, should be replaced
# with distutils-based solution.
#PYTHONINC=/local/include/python2.5
PYTHONINC
=
/usr/include/python2.5
python ../../cython.py refnanny.pyx
gcc
-shared
-pthread
-fPIC
-fwrapv
-g
-Wall
\
-fno-strict-aliasing
-I
$PYTHONINC
\
-o
refnanny.so
-I
.
refnanny.c
runtests.py
View file @
af6d93b2
...
@@ -531,14 +531,6 @@ if __name__ == '__main__':
...
@@ -531,14 +531,6 @@ if __name__ == '__main__':
from
Cython.Compiler
import
Errors
from
Cython.Compiler
import
Errors
Errors
.
LEVEL
=
0
# show all warnings
Errors
.
LEVEL
=
0
# show all warnings
if
options
.
with_refnanny
:
import
ctypes
ctypes
.
PyDLL
(
"Cython/Runtime/refnanny.so"
,
mode
=
ctypes
.
RTLD_GLOBAL
)
sys
.
path
.
append
(
"Cython/Runtime"
)
import
refnanny
del
sys
.
path
[
-
1
]
CFLAGS
.
append
(
"-DCYTHON_REFNANNY"
)
# RUN ALL TESTS!
# RUN ALL TESTS!
ROOTDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'tests'
)
ROOTDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'tests'
)
WORKDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
'BUILD'
)
WORKDIR
=
os
.
path
.
join
(
os
.
getcwd
(),
'BUILD'
)
...
@@ -546,7 +538,9 @@ if __name__ == '__main__':
...
@@ -546,7 +538,9 @@ if __name__ == '__main__':
UNITTEST_ROOT
=
os
.
path
.
join
(
os
.
getcwd
(),
UNITTEST_MODULE
)
UNITTEST_ROOT
=
os
.
path
.
join
(
os
.
getcwd
(),
UNITTEST_MODULE
)
if
WITH_CYTHON
:
if
WITH_CYTHON
:
if
os
.
path
.
exists
(
WORKDIR
):
if
os
.
path
.
exists
(
WORKDIR
):
shutil
.
rmtree
(
WORKDIR
,
ignore_errors
=
True
)
for
path
in
os
.
listdir
(
WORKDIR
):
if
path
in
(
"support"
,):
continue
shutil
.
rmtree
(
os
.
path
.
join
(
WORKDIR
,
path
),
ignore_errors
=
True
)
if
not
os
.
path
.
exists
(
WORKDIR
):
if
not
os
.
path
.
exists
(
WORKDIR
):
os
.
makedirs
(
WORKDIR
)
os
.
makedirs
(
WORKDIR
)
...
@@ -558,6 +552,18 @@ if __name__ == '__main__':
...
@@ -558,6 +552,18 @@ if __name__ == '__main__':
sys
.
stderr
.
write
(
"Python %s
\
n
"
%
sys
.
version
)
sys
.
stderr
.
write
(
"Python %s
\
n
"
%
sys
.
version
)
sys
.
stderr
.
write
(
"
\
n
"
)
sys
.
stderr
.
write
(
"
\
n
"
)
if
options
.
with_refnanny
:
from
pyximport.pyxbuild
import
pyx_to_dll
import
ctypes
libpath
=
pyx_to_dll
(
os
.
path
.
join
(
"Cython"
,
"Runtime"
,
"refnanny.pyx"
),
build_in_temp
=
True
,
pyxbuild_dir
=
os
.
path
.
join
(
WORKDIR
,
"support"
))
ctypes
.
PyDLL
(
libpath
,
mode
=
ctypes
.
RTLD_GLOBAL
)
sys
.
path
.
append
(
os
.
path
.
split
(
libpath
)[
0
])
import
refnanny
del
sys
.
path
[
-
1
]
CFLAGS
.
append
(
"-DCYTHON_REFNANNY"
)
test_bugs
=
False
test_bugs
=
False
if
options
.
tickets
:
if
options
.
tickets
:
for
ticket_number
in
options
.
tickets
:
for
ticket_number
in
options
.
tickets
:
...
...
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