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
4b1886f9
Commit
4b1886f9
authored
Nov 11, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import fixes for Py2.6
parent
97779d4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
pyximport/pyximport.py
pyximport/pyximport.py
+7
-2
No files found.
pyximport/pyximport.py
View file @
4b1886f9
...
...
@@ -20,12 +20,17 @@ the documentation.
This code was modeled on Quixote's ptl_import.
"""
import
sys
,
os
,
shutil
import
imp
,
ihooks
,
glob
,
md5
import
imp
,
ihooks
,
glob
import
__builtin__
import
pyxbuild
from
distutils.dep_util
import
newer
from
distutils.extension
import
Extension
try
:
import
hashlib
except
ImportError
:
import
md5
as
hashlib
mod_name
=
"pyximport"
assert
sys
.
hexversion
>=
0x20000b1
,
"need Python 2.0b1 or later"
...
...
@@ -54,7 +59,7 @@ def _load_pyrex(name, filename):
def
get_distutils_extension
(
modname
,
pyxfilename
):
extra
=
"_"
+
md5
.
md5
(
open
(
pyxfilename
).
read
()).
hexdigest
()
extra
=
"_"
+
hashlib
.
md5
(
open
(
pyxfilename
).
read
()).
hexdigest
()
# modname = modname + extra
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