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
5d3a6f43
Commit
5d3a6f43
authored
Apr 18, 2024
by
Zhang Xin
Browse files
add install file
parent
8df06b27
Pipeline
#4213
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
install.sh
0 → 100644
View file @
5d3a6f43
# conda create -n csstsim_py311 python==3.11
# conda activate csstsim_py311
conda config
--add
channels conda-forge
conda
install
numpy
==
1.26.4
conda
install
cython
==
3.0.6
conda
install
sep
==
1.2.1
conda
install
mpi4py
==
3.1.6
python setup.py
install
pip
install
-e
.
\ No newline at end of file
requirements.txt
0 → 100644
View file @
5d3a6f43
numpy
==1.26.4
astropy
==6.0.1
scipy
==1.11.4
GalSim
==2.5.2
PyYAML
==6.0.1
mpi4py
==3.1.6
sep
==1.2.1
healpy
==1.16.6
h5py
==3.11.0
Cython
==3.0.6
numba
==0.59.1
psutil
==5.9.8
toml
==0.10.2
\ No newline at end of file
setup.py
View file @
5d3a6f43
...
...
@@ -58,23 +58,32 @@ cti_module = [CTypes('ObservationSim.Instrument.Chip.libCTI.libmoduleCTI',
# name = "slssim_disperse",
# ext_modules = cythonize(extensions),
# )
# 读取依赖列表requirements.txt
# 忽略#开头或者版本号不明确指定的条目
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
requirements
=
[
req
.
strip
()
for
req
in
f
.
readlines
()
if
not
req
.
startswith
(
"#"
)
and
req
.
__contains__
(
"=="
)
]
setup
(
name
=
'CSSTSim'
,
version
=
'2.1.0'
,
packages
=
find_packages
(),
install_requires
=
[
# 'numpy>=1.18.5',
# 'galsim>=2.2.4',
# 'pyyaml>=5.3.1',
# 'astropy>=4.0.1',
# 'scipy>=1.5.0',
# 'mpi4py>=3.0.3',
# 'sep>=1.0.3',
# 'healpy>=1.14.0',
# 'h5py>=2.10.0',
# 'Cython>=0.29.21',
# 'numba>=0.50.1'
],
# install_requires=[
# # 'numpy>=1.18.5',
# # 'galsim>=2.2.4',
# # 'pyyaml>=5.3.1',
# # 'astropy>=4.0.1',
# # 'scipy>=1.5.0',
# # 'mpi4py>=3.0.3',
# # 'sep>=1.0.3',
# # 'healpy>=1.14.0',
# # 'h5py>=2.10.0',
# # 'Cython>=0.29.21',
# # 'numba>=0.50.1'
# ],
package_data
=
{
'ObservationSim.Astrometry.lib'
:
[
'libshao.so'
],
'ObservationSim.Instrument.Chip.libBF'
:
[
'libmoduleBF.so'
],
...
...
@@ -94,6 +103,9 @@ setup(name='CSSTSim',
'ObservationSim.Straylight.data.sky'
:
[
'*.dat'
],
'ObservationSim.Straylight.lib'
:
[
'*'
],
},
python_requires
=
">=3.11"
,
# Python版本要求
install_requires
=
requirements
,
ext_modules
=
cythonize
(
extensions
)
+
df_module
+
cti_module
,
cmdclass
=
{
'build_ext'
:
build_ext
}
)
Wei Chengliang
@weichengliang
mentioned in issue
#22 (closed)
·
Apr 18, 2024
mentioned in issue
#22 (closed)
mentioned in issue #22
Toggle commit list
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