Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_msc_sim
Commits
e82a5dcc
Commit
e82a5dcc
authored
Nov 25, 2021
by
Xin Zhang
Browse files
fix sls install bug
parent
a63216e8
Changes
2
Show whitespace changes
Inline
Side-by-side
ObservationSim/MockObject/SpecDisperser/disperse_c/__init__.py
View file @
e82a5dcc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
Cython
Cython
"""
"""
from
.
import
disperse
#
from . import disperse
from
.
import
interp
#
from . import interp
#
from .disperse import *
from
.disperse
import
*
#
from .interp import *
from
.interp
import
*
setup.py
View file @
e82a5dcc
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
from
setuptools.extension
import
Extension
from
setuptools.config
import
read_configuration
from
Cython.Build
import
cythonize
import
numpy
extensions
=
[
Extension
(
"ObservationSim.MockObject.SpecDisperser.disperse_c.interp"
,
[
"ObservationSim/MockObject/SpecDisperser/disperse_c/interp.pyx"
],
include_dirs
=
[
numpy
.
get_include
()],
libraries
=
[
"m"
]),
Extension
(
"ObservationSim.MockObject.SpecDisperser.disperse_c.disperse"
,
[
"ObservationSim/MockObject/SpecDisperser/disperse_c/disperse.pyx"
],
include_dirs
=
[
numpy
.
get_include
()],
libraries
=
[
"m"
]),
]
# setup(
# name = "slssim_disperse",
# ext_modules = cythonize(extensions),
# )
setup
(
name
=
'CSSTSim'
,
setup
(
name
=
'CSSTSim'
,
version
=
'0.3'
,
version
=
'0.3'
,
packages
=
find_packages
(),
packages
=
find_packages
(),
...
@@ -16,4 +41,5 @@ setup(name='CSSTSim',
...
@@ -16,4 +41,5 @@ setup(name='CSSTSim',
# 'Cython>=0.29.21'
# 'Cython>=0.29.21'
# 'numba>=0.50.1'
# 'numba>=0.50.1'
# ]
# ]
ext_modules
=
cythonize
(
extensions
),
)
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment