Skip to content
Snippets Groups Projects
Select Git revision
  • 78889e8c1244ed6ed0bd0de193a9dfc94f2d3103
  • master default protected
  • csv_export
  • ndex
  • v1.1.18-rc2
  • v1.1.17
  • v1.1.16
  • v1.1.16-rc12
  • v1.1.16-rc11
  • v1.1.16-rc10
  • v1.1.16-rc9
  • v1.1.16-rc8
  • v1.1.16-rc7
  • v1.1.16-rc4
  • v1.1.16-rc3
  • v1.1.16-rc1
  • v1.1.6-rc1
  • v1.1.15
  • v1.1.15-rc7
  • v1.1.15-rc6
  • v1.1.15-rc3
  • v1.1.15-rc1
  • v1.1.14
  • v1.1.13
24 results

build-netex.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    setup.py 1.16 KiB
    #! /usr/bin/env python
    
    # System imports
    from distutils.core import *
    from distutils      import sysconfig
    
    # Third-party modules - we depend on numpy for everything
    import numpy
    import os
    # Obtain the numpy include directory.  This logic works across numpy versions.
    try:
        numpy_include = numpy.get_include()
    except AttributeError:
        numpy_include = numpy.get_numpy_include()
    # HexitecIO extension module
    _AmptekHardwareInterface = Extension("_AmptekHardwareInterface",
                       ["python/AmptekHardwareInterface.i",] + ["src/" + f for f in os.listdir("src") if os.path.isfile("src/" + f)],
                       include_dirs = [numpy_include, "include"],
                       swig_opts=['-c++',"-modern" , "-nomodernargs"],
                       extra_compile_args = ["-std=c++11", "-g"], 
                       libraries=["usb-1.0"]
                       )
    
    # NumyTypemapTests setup
    setup(  name        = "AmptekHardwareInterface function",
            description = "Implementation of the Amptek DP5 Protocol",
            scripts     = ["python/AmptekPX5.py"],
            author      = "Christian Koernig",
            version     = "0.1",
            ext_modules = [_AmptekHardwareInterface]
            )