Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
0e9f9375
Commit
0e9f9375
authored
Aug 07, 2019
by
Stephan Seitz
Browse files
Lint setup.py
parent
eef95e0e
Pipeline
#17064
passed with stage
in 5 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
0e9f9375
import
distutils
import
io
import
os
import
sys
import
io
from
setuptools
import
setup
,
find_packages
import
distutils
from
distutils.extension
import
Extension
from
contextlib
import
redirect_stdout
from
distutils.extension
import
Extension
from
importlib
import
import_module
from
setuptools
import
find_packages
,
setup
if
'--use-cython'
in
sys
.
argv
:
USE_CYTHON
=
True
sys
.
argv
.
remove
(
'--use-cython'
)
...
...
@@ -52,6 +53,7 @@ class SimpleTestRunner(distutils.cmd.Command):
for
test
in
quick_tests
:
self
.
_run_tests_in_module
(
test
)
def
readme
():
with
open
(
'README.md'
)
as
f
:
return
f
.
read
()
...
...
@@ -69,7 +71,7 @@ def cython_extensions(*extensions):
try
:
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'doc'
))
from
version_from_git
import
version_number_from_git
version
=
version_number_from_git
()
version
=
version_number_from_git
()
with
open
(
"RELEASE-VERSION"
,
"w"
)
as
f
:
f
.
write
(
version
)
except
ImportError
:
...
...
@@ -88,7 +90,7 @@ setup(name='pystencils',
packages
=
[
'pystencils'
]
+
[
'pystencils.'
+
s
for
s
in
find_packages
(
'pystencils'
)],
install_requires
=
[
'sympy>=1.1'
,
'numpy'
,
'appdirs'
,
'joblib'
],
package_data
=
{
'pystencils'
:
[
'include/*.h'
,
'backends/cuda_known_functions.txt'
]},
ext_modules
=
cython_extensions
(
"pystencils.boundaries.createindexlistcython"
),
ext_modules
=
cython_extensions
(
"pystencils.boundaries.createindexlistcython"
),
classifiers
=
[
'Development Status :: 4 - Beta'
,
'Framework :: Jupyter'
,
...
...
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