Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope-container
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
Boxiang Sun
zope-container
Commits
bfbb147b
Commit
bfbb147b
authored
Feb 19, 2014
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't even attempt to build the C modules on PyPy
parent
a920e380
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
setup.py
setup.py
+19
-5
No files found.
setup.py
View file @
bfbb147b
...
...
@@ -19,6 +19,8 @@
"""Setup for zope.container package
"""
import
os
import
platform
import
sys
from
setuptools
import
setup
,
find_packages
,
Extension
def
read
(
*
rnames
):
...
...
@@ -39,6 +41,22 @@ def alltests():
suites
=
list
(
zope
.
testrunner
.
find
.
find_suites
(
options
))
return
unittest
.
TestSuite
(
suites
)
# PyPy cannot correctly build the C optimizations, and even if it
# could they would be anti-optimizations (the C extension
# compatibility layer is known-slow, and defeats JIT opportunities).
py_impl
=
getattr
(
platform
,
'python_implementation'
,
lambda
:
None
)
pure_python
=
os
.
environ
.
get
(
'PURE_PYTHON'
,
False
)
is_pypy
=
py_impl
()
==
'PyPy'
if
pure_python
or
is_pypy
:
ext_modules
=
[]
else
:
ext_modules
=
[
Extension
(
"zope.container._zope_container_contained"
,
[
os
.
path
.
join
(
"src"
,
"zope"
,
"container"
,
"_zope_container_contained.c"
)
],
include_dirs
=
[
'include'
]),
]
setup
(
name
=
'zope.container'
,
version
=
'4.0.0a4.dev0'
,
author
=
'Zope Foundation and Contributors'
,
...
...
@@ -77,11 +95,7 @@ setup(name='zope.container',
packages
=
find_packages
(
'src'
),
package_dir
=
{
''
:
'src'
},
namespace_packages
=
[
'zope'
],
ext_modules
=
[
Extension
(
"zope.container._zope_container_contained"
,
[
os
.
path
.
join
(
"src"
,
"zope"
,
"container"
,
"_zope_container_contained.c"
)
],
include_dirs
=
[
'include'
]),
],
ext_modules
=
ext_modules
,
extras_require
=
dict
(
test
=
[
'zope.testing'
,
'zope.testrunner'
],
...
...
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