import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [
    Extension("nerven.epoc._parse", ["src/nerven/epoc/_parse.pyx"])
]

setup(name='nerven',
      version='0.1',
      author='Sharif Olorin',
      author_email='sio@tesser.org',
      requires=[
          'wxmpl',
          'numpy',
          ],
      cmdclass={'build_ext' : build_ext},
      ext_modules=ext_modules,
      package_dir={'' : 'src'},
      packages=['nerven', 'nerven.epoc', 'nerven.writer'],
      package_data={'nerven' : ['img/*.png']},
      scripts=['src/nerven_gui'],
      data_files=[('bin', ['src/nerven_gui'])],
      )

import sys

import numpy

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [
    Extension("nerven.epoc._parse",
        sources=["src/nerven/epoc/_parse.pyx"],
        include_dirs=[".", numpy.get_include()]),
]

setup(name='nerven',
      version='0.1',
      author='Sharif Olorin',
      author_email='sio@tesser.org',
      requires=[
          'wxmpl',
          'numpy',
          ],
      cmdclass={'build_ext' : build_ext},
      ext_modules=ext_modules,
      package_dir={'' : 'src'},
      packages=['nerven', 'nerven.epoc', 'nerven.writer'],
      package_data={'nerven' : ['img/*.png']},
      scripts=['src/nerven_gui'],
      data_files=[('bin', ['src/nerven_gui'])],
      )

Fix the numpy include path used by the Cython extension
Fix the numpy include path used by the Cython extension

Apparently this only worked because I had numpy installed system-wide
(broke on virtualenv-only installs).

  import sys
+ 
+ import numpy
+ 
  from distutils.core import setup
  from distutils.extension import Extension
  from Cython.Distutils import build_ext
  
  ext_modules = [
-     Extension("nerven.epoc._parse", ["src/nerven/epoc/_parse.pyx"])
+     Extension("nerven.epoc._parse",
+         sources=["src/nerven/epoc/_parse.pyx"],
+         include_dirs=[".", numpy.get_include()]),
  ]
  
  setup(name='nerven',
        version='0.1',
        author='Sharif Olorin',
        author_email='sio@tesser.org',
        requires=[
            'wxmpl',
            'numpy',
            ],
        cmdclass={'build_ext' : build_ext},
        ext_modules=ext_modules,
        package_dir={'' : 'src'},
        packages=['nerven', 'nerven.epoc', 'nerven.writer'],
        package_data={'nerven' : ['img/*.png']},
        scripts=['src/nerven_gui'],
        data_files=[('bin', ['src/nerven_gui'])],
        )
  
Fix the numpy include path used by the Cython extension
## Code Before:
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [
    Extension("nerven.epoc._parse", ["src/nerven/epoc/_parse.pyx"])
]

setup(name='nerven',
      version='0.1',
      author='Sharif Olorin',
      author_email='sio@tesser.org',
      requires=[
          'wxmpl',
          'numpy',
          ],
      cmdclass={'build_ext' : build_ext},
      ext_modules=ext_modules,
      package_dir={'' : 'src'},
      packages=['nerven', 'nerven.epoc', 'nerven.writer'],
      package_data={'nerven' : ['img/*.png']},
      scripts=['src/nerven_gui'],
      data_files=[('bin', ['src/nerven_gui'])],
      )

## Instruction:
Fix the numpy include path used by the Cython extension
## Code After:
import sys

import numpy

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

ext_modules = [
    Extension("nerven.epoc._parse",
        sources=["src/nerven/epoc/_parse.pyx"],
        include_dirs=[".", numpy.get_include()]),
]

setup(name='nerven',
      version='0.1',
      author='Sharif Olorin',
      author_email='sio@tesser.org',
      requires=[
          'wxmpl',
          'numpy',
          ],
      cmdclass={'build_ext' : build_ext},
      ext_modules=ext_modules,
      package_dir={'' : 'src'},
      packages=['nerven', 'nerven.epoc', 'nerven.writer'],
      package_data={'nerven' : ['img/*.png']},
      scripts=['src/nerven_gui'],
      data_files=[('bin', ['src/nerven_gui'])],
      )
