Improving distutils setup

parent 462e6efb
......@@ -18,7 +18,8 @@ endif( )
add_definitions( -DPy_NO_ENABLE_SHARED )
add_library( VAPython SHARED "vasingleton.cpp" )
# Only add library here to check if it compiles. Use python distutils to actually compile the extension.
add_library( VAPython STATIC "vasingleton.cpp" )
target_link_libraries( VAPython ${VISTA_USE_PACKAGE_LIBRARIES} )
......
from distutils.core import setup, Extension
module1 = Extension('va', sources = ['vasingleton.cpp'])
module1 = Extension('va',
define_macros = [('VA_PYTHON_VERSION_MAJOR', '2017'), ('VA_PYTHON_VERSION_MINOR', 'c')],
include_dirs = ['../VABase/include','../VANet/include'],
libraries = ['VABase', 'VANet', 'VistaBase', 'VistaAspects', 'VistaInterProcComm'],
library_dirs = ['../build_win32-x64.vc14/lib','../../VisTA/build_win32-x64.vc14/lib'],
sources = ['vasingleton.cpp'])
setup (name = 'va',
version = '1.0',
version = '2017.c',
description = 'Virtual Acoustics singleton interface',
author = 'Institute of Technical Acoustics (ITA), RWTH Aachen University',
author_email = 'post@akustik.rwth-aachen.de',
url = 'https://virtualacoustics.org',
long_description = '''
Virtual Acoustics is a real-time auralization framework for Virtual Reality. This module is an interface to interact with a VA server.
''',
ext_modules = [module1])
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment