Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64265341
setup.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, May 25, 17:43
Size
1 KB
Mime Type
text/x-python
Expires
Mon, May 27, 17:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17875486
Attached To
rPNBODY pNbody
setup.py
View Options
#!/usr/bin/env python
import
os
,
sys
from
distutils.core
import
setup
,
Extension
from
distutils.sysconfig
import
get_python_inc
from
distutils.sysconfig
import
get_python_lib
'''
In order to compile with mpi,
export CC=mpicc
python setup.py build
'''
incdir
=
os
.
path
.
join
(
get_python_inc
(
plat_specific
=
1
),
'numpy'
)
libdir
=
os
.
path
.
join
(
get_python_lib
(
plat_specific
=
1
),
'numpy'
)
gadget_files
=
[
"src/main.c"
,
"src/run.c"
,
"src/predict.c"
,
"src/begrun.c"
,
"src/endrun.c"
,
"src/global.c"
,
"src/timestep.c"
,
"src/init.c"
,
"src/restart.c"
,
"src/io.c"
,
"src/accel.c"
,
"src/read_ic.c"
,
"src/ngb.c"
,
"src/system.c"
,
"src/allocate.c"
,
"src/density.c"
,
"src/gravtree.c"
,
"src/hydra.c"
,
"src/driftfac.c"
,
"src/domain.c"
,
"src/allvars.c"
,
"src/potential.c"
,
"src/forcetree.c"
,
"src/peano.c"
,
"src/gravtree_forcetest.c"
,
"src/pm_periodic.c"
,
"src/pm_nonperiodic.c"
,
"src/longrange.c"
,
"src/sph.c"
,
"src/python_interface.c"
,
"src/domainQ.c"
,
"src/allocateQ.c"
]
setup
(
name
=
'PyGadget'
,
version
=
'0.0'
,
description
=
'Python Gadget Wrapping'
,
author
=
'Greg Ward'
,
author_email
=
'yves.revaz@epfl.ch'
,
url
=
'http://obswww.unige.ch/~revaz/pNbody'
,
packages
=
[
'PyGadget'
],
ext_modules
=
[
Extension
(
'PyGadget.gadget'
,
gadget_files
,
include_dirs
=
[
"/usr/lib/mpich/include/"
,
"src/"
,
"/usr/include/python2.6/"
],
define_macros
=
[(
'PY_INTERFACE'
,
'1'
),(
'UNEQUALSOFTENINGS'
,
'1'
)]
,
libraries
=
[
'gsl'
,
'gslcblas'
,
'm'
,
'mpi'
]
)
]
)
Event Timeline
Log In to Comment