|
1 | | -#!/usr/bin/python |
| 1 | +#!/usr/bin/env python |
2 | 2 |
|
3 | 3 | # thanks to Nick Foti for his cython skeleton, cf. |
4 | 4 | # http://nfoti.github.io/a-creative-blog-name/posts/2013/02/07/cleaning-cython-build-files/ |
|
24 | 24 | raw_input('Hit any key to continue...') |
25 | 25 |
|
26 | 26 |
|
27 | | -if not __version__[0].isdigit(): |
28 | | - raise RuntimeError("Unable to determine version from _version.py, " |
29 | | - "perhaps no git-describe available?") |
30 | | - |
31 | | - |
32 | 27 | args = sys.argv[1:] |
33 | 28 | # Make a `cleanall` rule to get rid of intermediate and library files |
34 | 29 | if "cleanall" in args: |
|
58 | 53 |
|
59 | 54 |
|
60 | 55 | # Set up extension and build |
61 | | -cy_ext_options = {"compiler_directives": {"profile": True}, "annotate": True} |
| 56 | +cy_ext_options = { |
| 57 | + "compiler_directives": {"profile": True, # SLOW!!! |
| 58 | + "embedsignature": True}, |
| 59 | + "annotate": True, |
| 60 | +} |
62 | 61 | cy_ext = [ |
63 | 62 | Extension("PyHEADTAIL.cobra_functions.stats", |
64 | 63 | ["PyHEADTAIL/cobra_functions/stats.pyx"], |
|
87 | 86 | description='CERN PyHEADTAIL numerical n-body simulation code ' |
88 | 87 | 'for simulating macro-particle beam dynamics with collective effects.', |
89 | 88 | url='https://github.com/PyCOMPLETE/PyHEADTAIL', |
| 89 | + author='Kevin Li', |
| 90 | + |
| 91 | + maintainer='Adrian Oeftiger', |
| 92 | + maintainer_email='[email protected]', |
90 | 93 | packages=find_packages(), |
91 | 94 | long_description=long_description, |
92 | 95 | cmdclass={'build_ext': build_ext}, |
|
98 | 101 | 'h5py', |
99 | 102 | 'cython', |
100 | 103 | ] |
101 | | - ) |
102 | | - |
103 | | -from numpy.distutils.core import setup, Extension |
104 | | -setup( |
105 | | - ext_modules = [Extension('PyHEADTAIL.general.errfff', |
106 | | - ['PyHEADTAIL/general/errfff.f90'])], |
107 | 104 | ) |
| 105 | + |
| 106 | +# from numpy.distutils.core import setup, Extension |
| 107 | +# setup( |
| 108 | +# ext_modules = [Extension('PyHEADTAIL.general.errfff', |
| 109 | +# ['PyHEADTAIL/general/errfff.f90'])], |
| 110 | +# ) |
0 commit comments