Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
527ac4e2
Commit
527ac4e2
authored
Jun 02, 2007
by
Andreas Zeidler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added setup code for new flavours of BTree extensions (borrowed from `ZODB/setup.py`)
parent
652e041d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
27 deletions
+44
-27
setup.py
setup.py
+44
-27
No files found.
setup.py
View file @
527ac4e2
...
...
@@ -307,30 +307,6 @@ ext_modules = [
'ExtensionClass/pickle/pickle.c'
,
'Acquisition/Acquisition.h'
]),
# BTrees
Extension
(
name
=
'BTrees._OOBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
sources
=
[
'BTrees/_OOBTree.c'
]),
Extension
(
name
=
'BTrees._OIBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
sources
=
[
'BTrees/_OIBTree.c'
]),
Extension
(
name
=
'BTrees._IIBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
define_macros
=
[(
'EXCLUDE_INTSET_SUPPORT'
,
None
)],
sources
=
[
'BTrees/_IIBTree.c'
]),
Extension
(
name
=
'BTrees._IOBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
define_macros
=
[(
'EXCLUDE_INTSET_SUPPORT'
,
None
)],
sources
=
[
'BTrees/_IOBTree.c'
]),
Extension
(
name
=
'BTrees._IFBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
define_macros
=
[(
'EXCLUDE_INTSET_SUPPORT'
,
None
)],
sources
=
[
'BTrees/_IFBTree.c'
]),
Extension
(
name
=
'BTrees._fsBTree'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
+
[
'persistent'
],
define_macros
=
[(
'EXCLUDE_INTSET_SUPPORT'
,
None
)],
sources
=
[
'BTrees/_fsBTree.c'
]),
# DocumentTemplate
Extension
(
name
=
'DocumentTemplate.cDocumentTemplate'
,
include_dirs
=
EXTENSIONCLASS_INCLUDEDIRS
,
...
...
@@ -413,9 +389,6 @@ ext_modules = [
Extension
(
name
=
'persistent.TimeStamp'
,
sources
=
[
'persistent/TimeStamp.c'
]
),
Extension
(
name
=
'ZODB.winlock'
,
sources
=
[
'ZODB/winlock.c'
]
),
#zope
Extension
(
"zope.proxy._zope_proxy_proxy"
,
...
...
@@ -457,6 +430,50 @@ ext_modules = [
]
# BTree extension modules (code borrowed from ZODB/setup.py)
# Include directories for C extensions
include
=
[
'.'
]
# Set up dependencies for the BTrees package
base_btrees_depends
=
[
"BTrees/BTreeItemsTemplate.c"
,
"BTrees/BTreeModuleTemplate.c"
,
"BTrees/BTreeTemplate.c"
,
"BTrees/BucketTemplate.c"
,
"BTrees/MergeTemplate.c"
,
"BTrees/SetOpTemplate.c"
,
"BTrees/SetTemplate.c"
,
"BTrees/TreeSetTemplate.c"
,
"BTrees/sorters.c"
,
"persistent/cPersistence.h"
,
]
_flavors
=
{
"O"
:
"object"
,
"I"
:
"int"
,
"F"
:
"float"
,
'L'
:
'int'
}
KEY_H
=
"BTrees/%skeymacros.h"
VALUE_H
=
"BTrees/%svaluemacros.h"
def
BTreeExtension
(
flavor
):
key
=
flavor
[
0
]
value
=
flavor
[
1
]
name
=
"BTrees._%sBTree"
%
flavor
sources
=
[
"BTrees/_%sBTree.c"
%
flavor
]
kwargs
=
{
"include_dirs"
:
include
}
if
flavor
!=
"fs"
:
kwargs
[
"depends"
]
=
(
base_btrees_depends
+
[
KEY_H
%
_flavors
[
key
],
VALUE_H
%
_flavors
[
value
]])
else
:
kwargs
[
"depends"
]
=
base_btrees_depends
if
key
!=
"O"
:
kwargs
[
"define_macros"
]
=
[(
'EXCLUDE_INTSET_SUPPORT'
,
None
)]
return
Extension
(
name
,
sources
,
**
kwargs
)
ext_modules
+=
[
BTreeExtension
(
flavor
)
for
flavor
in
(
"OO"
,
"IO"
,
"OI"
,
"II"
,
"IF"
,
"fs"
,
"LO"
,
"OL"
,
"LL"
,
"LF"
,
)]
# We're using the module docstring as the distutils descriptions.
doclines
=
__doc__
.
split
(
"
\
n
"
)
...
...
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