Skip to content
Snippets Groups Projects
Commit 4d7b7549 authored by Jan Caron's avatar Jan Caron
Browse files

Small changes, backup before project tree reconstruction

parent 90d038a6
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ syntax: glob
.spyderproject
.cproject
*.pyc
*.pyd
*.so
*.os
output*
......
setup.py 0 → 100644
# -*- coding: utf-8 -*-
"""
Created on Fri May 03 10:27:04 2013
@author: Jan
"""
#call with: python setup.py build_ext --inplace --compiler=mingw32
import os
import glob
from distutils.core import setup
from Cython.Build import cythonize
setup(
name = 'Pyramid',
version = '0.1',
description = 'PYthon based Reconstruction Algorithm for MagnetIc Distributions',
author = 'Jan Caron',
author_email = 'j.caron@fz-juelich.de',
package_dir = {'': 'src'},
packages = ['pyramid'],
ext_package = ['pyramex']
ext_modules = cythonize(glob.glob(os.path.join('pyramex','*.pyx')))
)
......@@ -20,7 +20,7 @@ if os.name == 'nt':
# os.environ['PATH'] = 'C:\MinGW\bin'
mingw_setup_args = { 'options': { 'build_ext': { 'compiler': 'mingw32' } } }
pyximport.install(setup_args=mingw_setup_args)
pyximport.install(setup_args=mingw_setup_args, inplace=True)
elif os.name == 'posix':
......@@ -29,4 +29,4 @@ elif os.name == 'posix':
else:
os.environ['CFLAGS'] = ' -I' + numpy.get_include()
pyximport.install()
\ No newline at end of file
pyximport.install(inplace=True)
\ No newline at end of file
......@@ -7,10 +7,15 @@ Created on Fri May 03 10:27:04 2013
#call with: python setup.py build_ext --inplace --compiler=mingw32
import glob
from distutils.core import setup
from Cython.Build import cythonize
setup(
name = "My hello app",
ext_modules = cythonize('hello.pyx'), # accepts a glob pattern
name = 'Pyramex',
version = '0.1',
description = 'Pyramid Cython Extensions',
author = 'Jan Caron',
author_email = 'j.caron@fz-juelich.de',
ext_modules = cythonize(glob.glob('*.pyx'))
)
\ No newline at end of file
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