Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
a067f46c
Commit
a067f46c
authored
Jan 31, 2018
by
rna
Committed by
Andreas Schmidt
Feb 09, 2018
Browse files
Fix setup.py.
parent
8e7a1bae
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
a067f46c
from
setuptools
import
setup
from
distutils.extension
import
Extension
from
Cython.Build
import
cythonize
import
os
import
os
,
errno
import
versioneer
os
.
environ
[
"CC"
]
=
"gcc-5"
os
.
environ
[
"CXX"
]
=
"g++-5"
ext
=
Extension
(
name
=
'prrt'
,
sources
=
[
"prrt/*.pyx"
])
try
:
os
.
remove
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"prrt/prrt.c"
))
except
OSError
as
e
:
if
e
.
errno
!=
errno
.
ENOENT
:
raise
ext_modules
=
cythonize
(
ext
,
gdb_debug
=
True
)
setup
(
name
=
'prrt'
,
version
=
versioneer
.
get_version
(),
...
...
Write
Preview
Supports
Markdown
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