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
Kirill Smelkov
cython
Commits
a6fa9d1a
Commit
a6fa9d1a
authored
Apr 26, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More extendable Setup.py
parent
a0ecad50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+0
-1
Demos/Setup.py
Demos/Setup.py
+12
-23
No files found.
Cython/Compiler/ModuleNode.py
View file @
a6fa9d1a
...
...
@@ -690,7 +690,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
for
entry
in
scope
.
var_entries
:
if
entry
.
type
.
is_pyobject
and
entry
is
not
weakref_slot
:
py_attrs
.
append
(
entry
)
print
py_attrs
if
py_attrs
or
weakref_slot
in
scope
.
var_entries
:
self
.
generate_self_cast
(
scope
,
code
)
self
.
generate_usr_dealloc_call
(
scope
,
code
)
...
...
Demos/Setup.py
View file @
a6fa9d1a
import
glob
from
distutils.core
import
setup
from
distutils.extension
import
Extension
from
Cython.Distutils
import
build_ext
setup
(
name
=
'Demos'
,
ext_modules
=
[
ext_modules
=
[
Extension
(
"primes"
,
[
"primes.pyx"
]),
Extension
(
"spam"
,
[
"spam.pyx"
]),
# Extension("numeric_demo", ["numeric_demo.pyx"]),
Extension
(
"test"
,
[
"test.pyx"
]),
Extension
(
"func_pointers"
,
[
"func_pointers.pyx"
]),
# Extension("inplace", ["inplace.pyx"]),
# Extension("withGIL", ["withGIL.pyx"]),
Extension
(
"class_members"
,
[
"class_members.pyx"
]),
# Extension("inherit_bug", ["inherit_bug.pyx"]),
Extension
(
"override"
,
[
"override.pyx"
]),
Extension
(
"cond"
,
[
"cond.pyx"
]),
# Extension("submodule.test", ["submodule/test.pyx"]),
Extension
(
"errors"
,
[
"errors.pyx"
]),
Extension
(
"cpdef"
,
[
"cpdef.pyx"
]),
Extension
(
"range"
,
[
"range.pyx"
]),
Extension
(
"early_temps"
,
[
"early_temps.pyx"
]),
Extension
(
"ints"
,
[
"ints.pyx"
]),
Extension
(
"clear"
,
[
"clear.pyx"
]),
Extension
(
"detect_override"
,
[
"detect_override.pyx"
]),
Extension
(
"fixes"
,
[
"fixes.pyx"
]),
],
]
for
file
in
glob
.
glob
(
"*.pyx"
):
if
file
!=
"numeric_demo.pyx"
:
ext_modules
.
append
(
Extension
(
file
[:
-
4
],
[
file
]))
setup
(
name
=
'Demos'
,
cmdclass
=
{
'build_ext'
:
build_ext
},
# include_dirs = "/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3/"
ext_modules
=
ext_modules
,
)
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