Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
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
persistent
Commits
db275742
Commit
db275742
authored
Dec 16, 2014
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid resource warnings under Py3k.
Also, work around edge case on Travis where files aren't found.
parent
47ccabba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
setup.py
setup.py
+9
-3
No files found.
setup.py
View file @
db275742
...
...
@@ -24,9 +24,15 @@ from setuptools import find_packages
from
setuptools
import
setup
here
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
README
=
(
open
(
os
.
path
.
join
(
here
,
'README.rst'
)).
read
()
+
'
\
n
\
n
'
+
open
(
os
.
path
.
join
(
here
,
'CHANGES.rst'
)).
read
())
def
_read_file
(
filename
):
try
:
with
open
(
os
.
path
.
join
(
here
,
filename
))
as
f
:
return
f
.
read
()
except
IOError
:
# Travis???
return
''
README
=
(
_read_file
(
'README.rst'
)
+
'
\
n
\
n
'
+
_read_file
(
'CHANGES.rst'
))
py_impl
=
getattr
(
platform
,
'python_implementation'
,
lambda
:
None
)
is_pypy
=
py_impl
()
==
'PyPy'
...
...
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