old_contents: #/usr/bin/env python3
  
  USE_CYTHON = True
  
  from distutils.core import setup
  from distutils.extension import Extension
  
  try:
      from Cython.Distutils import build_ext
  except ImportError:
      USE_CYTHON = False
  
  ext_modules = []
  cmdclass = {}
  
  if USE_CYTHON:
      ext_modules.extend([
          Extension("pgmpy.Factor._factor_product",
                    ["pgmpy/Factor/_factor_product.pyx"])
      ])
      cmdclass.update({'build_ext': build_ext})
  else:
      ext_modules.extend([
          Extension("pgmpy.Factor._factor_product",
                    ["pgmpy/Factor/_factor_product.c"])
      ])
  
  setup(
      name="pgmpy",
      packages=["pgmpy",
                "pgmpy.BayesianModel",
                "pgmpy.Exceptions",
                "pgmpy.Factor",
                "pgmpy.Independencies",
                "pgmpy.MarkovModel",
                "pgmpy.readwrite"],
      cmdclass=cmdclass,
      ext_modules=ext_modules,
      version="0.1.0",
      author=open("AUTHORS.rst").read(),
      url="https://github.com/pgmpy/pgmpy",
      classifiers=[
          "Programming Language :: Python :: 3",
          "Intended Audience :: Developers",
          "Intended Audience :: Researchers",
          "Operating System :: Unix",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "Operating System :: MacOS",
          "Topic :: Scientific/Engineering"
      ],
      long_description=open("README.md").read(),
      install_requires=[
          "networkx >= 1.8.1",
          "scipy >= 0.12.1",
          "numpy >= 1.7.1"
      ]
  )
  
new_contents: #/usr/bin/env python3
  
  USE_CYTHON = True
  
  from distutils.core import setup
  from distutils.extension import Extension
  import numpy as np
  try:
      from Cython.Distutils import build_ext
  except ImportError:
      USE_CYTHON = False
  
  ext_modules = []
  cmdclass = {}
  
  if USE_CYTHON:
      ext_modules.extend([
          Extension("pgmpy.Factor._factor_product",
                    ["pgmpy/Factor/_factor_product.pyx"])
      ])
      cmdclass.update({'build_ext': build_ext})
  else:
      ext_modules.extend([
          Extension("pgmpy.Factor._factor_product",
                    ["pgmpy/Factor/_factor_product.c"])
      ])
  
  setup(
      name="pgmpy",
      packages=["pgmpy",
                "pgmpy.BayesianModel",
                "pgmpy.Exceptions",
                "pgmpy.Factor",
                "pgmpy.Independencies",
                "pgmpy.MarkovModel",
                "pgmpy.readwrite"],
      cmdclass=cmdclass,
      ext_modules=ext_modules,
      version="0.1.0",
      author=open("AUTHORS.rst").read(),
      url="https://github.com/pgmpy/pgmpy",
      classifiers=[
          "Programming Language :: Python :: 3",
          "Intended Audience :: Developers",
          "Intended Audience :: Researchers",
          "Operating System :: Unix",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "Operating System :: MacOS",
          "Topic :: Scientific/Engineering"
      ],
      long_description=open("README.md").read(),
      install_requires=[
          "networkx >= 1.8.1",
          "scipy >= 0.12.1",
          "numpy >= 1.7.1"
      ],
      include_dirs = [np.get_include()]
  )
  
subject: Add include_dirs for distutils to find numpy header files