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
Gwenaël Samain
cython
Commits
cd8428e9
Commit
cd8428e9
authored
Apr 24, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3: fix import of Cython.Compiler.Version in setup.py
parent
f89d8fe5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Cython/Shadow.py
Cython/Shadow.py
+5
-2
Cython/__init__.py
Cython/__init__.py
+1
-1
setup.py
setup.py
+1
-4
No files found.
Cython/Shadow.py
View file @
cd8428e9
...
@@ -150,9 +150,12 @@ class typedef(CythonType):
...
@@ -150,9 +150,12 @@ class typedef(CythonType):
py_int
=
int
py_long
=
long
py_float
=
float
py_float
=
float
py_int
=
int
try
:
py_long
=
long
except
NameError
:
# Py3
py_long
=
int
# Predefined types
# Predefined types
...
...
Cython/__init__.py
View file @
cd8428e9
# Void cython.* directives (for case insensitive operating systems).
# Void cython.* directives (for case insensitive operating systems).
from
Shadow
import
*
from
Cython.
Shadow
import
*
setup.py
View file @
cd8428e9
...
@@ -2,10 +2,7 @@ from distutils.core import setup, Extension
...
@@ -2,10 +2,7 @@ from distutils.core import setup, Extension
from
distutils.sysconfig
import
get_python_lib
from
distutils.sysconfig
import
get_python_lib
import
os
,
os
.
path
import
os
,
os
.
path
import
sys
import
sys
try
:
from
Cython.Compiler.Version
import
version
from
Cython.Compiler.Version
import
version
except
ImportError
:
version
=
None
compiler_dir
=
os
.
path
.
join
(
get_python_lib
(
prefix
=
''
),
'Cython/Compiler'
)
compiler_dir
=
os
.
path
.
join
(
get_python_lib
(
prefix
=
''
),
'Cython/Compiler'
)
if
sys
.
platform
==
"win32"
:
if
sys
.
platform
==
"win32"
:
...
...
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