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
1351dda9
Commit
1351dda9
authored
Dec 05, 2023
by
Wei Chengliang
Browse files
add libmoduleCTI.so compiler
parent
c9468014
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
1351dda9
...
...
@@ -36,9 +36,13 @@ extensions = [
libraries
=
[
"m"
]),
]
df_module
=
[
CTypes
(
'ObservationSim.Instrument.Chip.lib_bf.libmoduleBF'
,
[
'ObservationSim/Instrument/Chip/lib_bf/diffusion_X1.c'
,
'ObservationSim/Instrument/Chip/lib_bf/nrutil.c'
],
include_dirs
=
[
'ObservationSim/Instrument/Chip/lib_bf/'
,
'/usr/include'
]
df_module
=
[
CTypes
(
'ObservationSim.Instrument.Chip.libBF.libmoduleBF'
,
[
'ObservationSim/Instrument/Chip/libBF/diffusion_X1.c'
,
'ObservationSim/Instrument/Chip/libBF/nrutil.c'
],
include_dirs
=
[
'ObservationSim/Instrument/Chip/libBF/'
,
'/usr/include'
]
)]
cti_module
=
[
CTypes
(
'ObservationSim.Instrument.Chip.libCTI.libmoduleCTI'
,
[
'ObservationSim/Instrument/Chip/libCTI/src/add_CTI1.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/nrutil.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/ran1.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/ran2.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/poidev.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/gammln.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/gasdev.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/sort.c'
,
'ObservationSim/Instrument/Chip/libCTI/src/creattraps.c'
],
include_dirs
=
[
'ObservationSim/Instrument/Chip/libCTI/src/'
,
'/usr/include'
]
)]
...
...
@@ -65,7 +69,8 @@ setup(name='CSSTSim',
],
package_data
=
{
'ObservationSim.Astrometry.lib'
:
[
'libshao.so'
],
'ObservationSim.Instrument.Chip.lib_bf'
:
[
'libmoduleBF.so'
],
'ObservationSim.Instrument.Chip.libBF'
:
[
'libmoduleBF.so'
],
'ObservationSim.Instrument.Chip.libCTI'
:
[
'libmoduleCTI.so'
],
'ObservationSim.MockObject.data'
:
[
'*.dat'
],
'ObservationSim.Instrument.data'
:
[
'*.txt'
,
'*.dat'
,
'*.json'
],
'ObservationSim.Instrument.data.field_distortion'
:
[
'*.pickle'
],
...
...
@@ -80,6 +85,6 @@ setup(name='CSSTSim',
'ObservationSim.Straylight.data.sky'
:
[
'*.dat'
],
'ObservationSim.Straylight.lib'
:
[
'*'
],
},
ext_modules
=
cythonize
(
extensions
)
+
df_module
,
ext_modules
=
cythonize
(
extensions
)
+
df_module
+
cti_module
,
cmdclass
=
{
'build_ext'
:
build_ext
}
)
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