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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
b0f8fee3
Commit
b0f8fee3
authored
Apr 02, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tags parsing
parent
9062ebdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
runtests.py
runtests.py
+31
-0
No files found.
runtests.py
View file @
b0f8fee3
...
@@ -27,6 +27,22 @@ try:
...
@@ -27,6 +27,22 @@ try:
except
ImportError
:
# No threads, no problems
except
ImportError
:
# No threads, no problems
threading
=
None
threading
=
None
try
:
from
collections
import
defaultdict
except
ImportError
:
class
defaultdict
(
object
):
def
__init__
(
self
,
default_factory
=
lambda
:
None
):
self
.
_dict
=
{}
self
.
default_factory
=
default_factory
def
__getitem__
(
self
,
key
):
if
key
not
in
self
.
_dict
:
self
.
_dict
[
key
]
=
self
.
default_factory
()
return
self
.
_dict
[
key
]
def
__setitem__
(
self
,
key
,
value
):
self
.
_dict
[
key
]
=
value
def
__repr__
(
self
):
return
repr
(
self
.
_dict
)
WITH_CYTHON
=
True
WITH_CYTHON
=
True
CY3_DIR
=
None
CY3_DIR
=
None
...
@@ -103,6 +119,21 @@ COMPILER = None
...
@@ -103,6 +119,21 @@ COMPILER = None
INCLUDE_DIRS = [ d for d in os.getenv('
INCLUDE
', '').split(os.pathsep) if d ]
INCLUDE_DIRS = [ d for d in os.getenv('
INCLUDE
', '').split(os.pathsep) if d ]
CFLAGS = os.getenv('
CFLAGS
', '').split()
CFLAGS = os.getenv('
CFLAGS
', '').split()
def parse_tags(filepath):
tags = defaultdict(list)
for line in open(filepath):
line = line.strip()
if not line:
continue
if line[0] != '
#':
break
ix
=
line
.
find
(
':'
)
if
ix
!=
-
1
:
tag
=
line
[
1
:
ix
].
strip
()
values
=
line
[
ix
+
1
:].
split
(
','
)
tags
[
tag
].
extend
([
value
.
strip
()
for
value
in
values
])
return
tags
class
build_ext
(
_build_ext
):
class
build_ext
(
_build_ext
):
def
build_extension
(
self
,
ext
):
def
build_extension
(
self
,
ext
):
if
ext
.
language
==
'c++'
:
if
ext
.
language
==
'c++'
:
...
...
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