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
11204636
Commit
11204636
authored
Nov 04, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added script to compile the CPython stdlib
parent
67c40b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
Tools/cystdlib.py
Tools/cystdlib.py
+39
-0
No files found.
Tools/cystdlib.py
0 → 100644
View file @
11204636
from
distutils.core
import
setup
from
Cython.Build
import
cythonize
from
Cython.Compiler
import
Options
import
sys
pyver
=
sys
.
version_info
[
0
]
try
:
sys
.
argv
.
remove
(
'--current-python'
)
except
ValueError
:
pass
else
:
# assume that the stdlib is where the "os" module lives
import
os
os
.
chdir
(
os
.
path
.
dirname
(
os
.
__file__
))
try
:
sys
.
argv
.
remove
(
'--parallel'
)
import
multiprocessing
parallel_compiles
=
multiprocessing
.
cpu_count
()
*
2
except
(
ValueError
,
ImportError
):
parallel_compiles
=
None
# improve Python compatibility by allowing some broken code
Options
.
error_on_unknown_names
=
False
excludes
=
[
'**/test/**/*.py'
,
'**/tests/**/*.py'
,
'**/__init__.py'
]
default_directives
=
dict
(
auto_cpdef
=
True
)
setup
(
name
=
'stuff'
,
ext_modules
=
cythonize
([
"**/*.py"
],
exclude
=
excludes
,
exclude_failures
=
True
,
language_level
=
pyver
,
# compiler_directives=dict(auto_cpdef=True),
nthreads
=
parallel_compiles
,
),
)
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