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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
faf0574b
Commit
faf0574b
authored
Aug 16, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes to get pyximport working
parent
53c3e2bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
pyximport/Setup.py
pyximport/Setup.py
+7
-7
pyximport/pyxbuild.py
pyximport/pyxbuild.py
+1
-1
pyximport/pyximport.py
pyximport/pyximport.py
+1
-1
No files found.
pyximport/Setup.py
View file @
faf0574b
...
@@ -24,12 +24,12 @@ setup(
...
@@ -24,12 +24,12 @@ setup(
url
=
"http://www.prescod.net/pyximport"
,
url
=
"http://www.prescod.net/pyximport"
,
license
=
"Python"
,
license
=
"Python"
,
keywords
=
"pyrex import hook"
,
keywords
=
"pyrex import hook"
,
scripts
=
[
"pyxrun"
],
#
scripts = ["pyxrun"],
data_files
=
[(
"examples/multi_file_extension"
,
#
data_files = [("examples/multi_file_extension",
[
"README"
,
"ccode.c"
,
"test.pyx"
,
"test.pyxbld"
]),
#
["README", "ccode.c", "test.pyx", "test.pyxbld"]),
(
"examples/dependencies"
,
#
("examples/dependencies",
[
"README"
,
"test.pyx"
,
"test.pyxdep"
,
"header.h"
,
#
["README", "test.pyx", "test.pyxdep", "header.h",
"header2.h"
,
"header3.h"
,
"header4.h"
])
#
"header2.h", "header3.h", "header4.h"])
],
#
],
py_modules
=
[
"pyximport"
,
"pyxbuild"
])
py_modules
=
[
"pyximport"
,
"pyxbuild"
])
pyximport/pyxbuild.py
View file @
faf0574b
...
@@ -10,7 +10,7 @@ from distutils.dist import Distribution
...
@@ -10,7 +10,7 @@ from distutils.dist import Distribution
from
distutils.errors
import
DistutilsArgError
,
DistutilsError
,
CCompilerError
from
distutils.errors
import
DistutilsArgError
,
DistutilsError
,
CCompilerError
from
distutils.extension
import
Extension
from
distutils.extension
import
Extension
from
distutils.util
import
grok_environment_error
from
distutils.util
import
grok_environment_error
from
Pyrex
.Distutils
import
build_ext
from
Cython
.Distutils
import
build_ext
import
shutil
import
shutil
DEBUG
=
0
DEBUG
=
0
...
...
pyximport/pyximport.py
View file @
faf0574b
...
@@ -55,7 +55,7 @@ def _load_pyrex(name, filename):
...
@@ -55,7 +55,7 @@ def _load_pyrex(name, filename):
def
get_distutils_extension
(
modname
,
pyxfilename
):
def
get_distutils_extension
(
modname
,
pyxfilename
):
extra
=
"_"
+
md5
.
md5
(
open
(
pyxfilename
).
read
()).
hexdigest
()
extra
=
"_"
+
md5
.
md5
(
open
(
pyxfilename
).
read
()).
hexdigest
()
modname
=
modname
+
extra
#
modname = modname + extra
extension_mod
=
handle_special_build
(
modname
,
pyxfilename
)
extension_mod
=
handle_special_build
(
modname
,
pyxfilename
)
...
...
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