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
5947eed7
Commit
5947eed7
authored
Oct 12, 2017
by
Robert Bradshaw
Committed by
GitHub
Oct 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1926 from aragilar/add_python_requires
Add python_requires to setup.py
parents
dfed51c5
70208cc5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
setup.py
setup.py
+5
-0
No files found.
setup.py
View file @
5947eed7
...
@@ -12,6 +12,10 @@ import sys
...
@@ -12,6 +12,10 @@ import sys
import
platform
import
platform
is_cpython
=
platform
.
python_implementation
()
==
'CPython'
is_cpython
=
platform
.
python_implementation
()
==
'CPython'
# this specifies which versions of python we support, pip >= 9 knows to skip
# versions of packages which are not compatible with the running python
PYTHON_REQUIRES
=
'>=2.6, !=3.0.*, !=3.1.*, !=3.2.*'
if
sys
.
platform
==
"darwin"
:
if
sys
.
platform
==
"darwin"
:
# Don't create resource files on OS X tar.
# Don't create resource files on OS X tar.
os
.
environ
[
'COPY_EXTENDED_ATTRIBUTES_DISABLE'
]
=
'true'
os
.
environ
[
'COPY_EXTENDED_ATTRIBUTES_DISABLE'
]
=
'true'
...
@@ -59,6 +63,7 @@ setup_args['package_data'] = {
...
@@ -59,6 +63,7 @@ setup_args['package_data'] = {
setuptools_extra_args
=
{}
setuptools_extra_args
=
{}
if
'setuptools'
in
sys
.
modules
:
if
'setuptools'
in
sys
.
modules
:
setuptools_extra_args
[
'python_requires'
]
=
PYTHON_REQUIRES
setuptools_extra_args
[
'zip_safe'
]
=
False
setuptools_extra_args
[
'zip_safe'
]
=
False
setuptools_extra_args
[
'entry_points'
]
=
{
setuptools_extra_args
[
'entry_points'
]
=
{
'console_scripts'
:
[
'console_scripts'
:
[
...
...
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