Skip to content
Snippets Groups Projects
Commit 0ebd8f55 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

get back to the right setup.py

parent 3290c872
No related branches found
No related tags found
No related merge requests found
from distutils.core import setup #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for wetb.
This file was generated with PyScaffold 2.5, a tool that easily
puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/
"""
import os
import sys
from setuptools import setup
import numpy as np
from distutils.extension import Extension from distutils.extension import Extension
from Cython.Distutils import build_ext from Cython.Distutils import build_ext
import numpy
ext_modules = [Extension("wetb.fatigue_tools.rainflowcounting.pair_range", ["./wetb/fatigue_tools/rainflowcounting/pair_range.pyx"], include_dirs = [numpy.get_include()])]
setup( def setup_package():
name = 'name',
cmdclass = {'build_ext': build_ext}, path = 'wetb/fatigue_tools/rainflowcounting/'
ext_modules = ext_modules module = 'wetb.fatigue_tools.rainflowcounting'
) names = ['pair_range', 'peak_trough', 'rainflowcount_astm']
\ No newline at end of file extlist = [Extension('%s.%s' % (module, n),
[os.path.join(path, n)+'.pyx'],
include_dirs=[np.get_include()]) for n in names]
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
setup(setup_requires=['six', 'pyscaffold>=2.5a0,<2.6a0'] + sphinx,
cmdclass = {'build_ext': build_ext},
ext_modules = extlist,
use_pyscaffold=True)
if __name__ == "__main__":
setup_package()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment