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
55b35ade
Commit
55b35ade
authored
Jul 26, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restrict 2to3 usage to Python 3.2 (which does not support the u'' string literal prefix)
parent
23a92baa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
2to3-fixers.txt
2to3-fixers.txt
+0
-1
runtests.py
runtests.py
+3
-3
setup.py
setup.py
+1
-1
No files found.
2to3-fixers.txt
View file @
55b35ade
lib2to3.fixes.fix_metaclass
lib2to3.fixes.fix_unicode
runtests.py
View file @
55b35ade
...
...
@@ -1764,9 +1764,9 @@ def main():
WORKDIR = os.path.abspath(options.work_dir)
if sys.version_info[0] >= 3:
if options.with_cython:
sys.path.insert(0, options.cython_dir)
if
options.with_cython and
sys.version_info[0] >= 3:
sys.path.insert(0, options.cython_dir)
if sys.version_info[:2] == (3, 2):
try:
# try if Cython is installed in a Py3 version
import Cython.Compiler.Main
...
...
setup.py
View file @
55b35ade
...
...
@@ -34,7 +34,7 @@ class sdist(sdist_orig):
sdist_orig
.
run
(
self
)
add_command_class
(
'sdist'
,
sdist
)
if
sys
.
version_info
[
0
]
>=
3
:
if
sys
.
version_info
[
:
2
]
==
(
3
,
2
)
:
import
lib2to3.refactor
from
distutils.command.build_py
\
import
build_py_2to3
as
build_py
...
...
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