Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Reinauer
lbmpy
Commits
a5438e4e
Commit
a5438e4e
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Fix setup
parent
91a0cfad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+11
-3
11 additions, 3 deletions
setup.py
with
11 additions
and
3 deletions
setup.py
+
11
−
3
View file @
a5438e4e
...
...
@@ -58,14 +58,22 @@ try:
except
ImportError
:
version
=
open
(
'
RELEASE-VERSION
'
,
'
r
'
).
read
()
def
cython_extensions
(
*
extensions
):
from
distutils.extension
import
Extension
ext
=
'
.pyx
'
if
USE_CYTHON
else
'
.c
'
result
=
[
Extension
(
e
,
[
e
.
replace
(
'
.
'
,
'
/
'
)
+
ext
])
for
e
in
extensions
]
if
USE_CYTHON
:
ext
=
'
.pyx
'
result
=
[
Extension
(
e
,
[
os
.
path
.
join
(
*
e
.
split
(
"
.
"
))
+
ext
])
for
e
in
extensions
]
from
Cython.Build
import
cythonize
result
=
cythonize
(
result
,
language_level
=
3
)
return
result
return
result
elif
all
([
os
.
path
.
exists
(
os
.
path
.
join
(
*
e
.
split
(
"
.
"
))
+
'
.c
'
)
for
e
in
extensions
]):
ext
=
'
.c
'
result
=
[
Extension
(
e
,
[
os
.
path
.
join
(
*
e
.
split
(
"
.
"
))
+
ext
])
for
e
in
extensions
]
return
result
else
:
return
None
def
readme
():
with
open
(
'
README.md
'
)
as
f
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment