Fixing distutils setup.py problems and removing warning in cpp source

parent 71f09991
...@@ -4,8 +4,8 @@ module1 = Extension('va', ...@@ -4,8 +4,8 @@ module1 = Extension('va',
define_macros = [('VA_PYTHON_VERSION_MAJOR', '2017'), ('VA_PYTHON_VERSION_MINOR', 'c')], define_macros = [('VA_PYTHON_VERSION_MAJOR', '2017'), ('VA_PYTHON_VERSION_MINOR', 'c')],
include_dirs = ['../VABase/include','../VANet/include'], include_dirs = ['../VABase/include','../VANet/include'],
libraries = ['VABase', 'VANet', 'VistaBase', 'VistaAspects', 'VistaInterProcComm'], libraries = ['VABase', 'VANet', 'VistaBase', 'VistaAspects', 'VistaInterProcComm'],
library_dirs = ['../build_win32-x64.vc14/lib','../../VisTA/build_win32-x64.vc14/lib'], library_dirs = ['../build_win32-x64.vc14/lib','../../ViSTA/build_win32-x64.vc14/lib'],
sources = ['vasingleton.cpp']) sources = ['src/vasingleton.cpp'])
setup (name = 'va', setup (name = 'va',
version = '2017.c', version = '2017.c',
......
...@@ -30,7 +30,5 @@ static struct PyModuleDef vamoduledef = ...@@ -30,7 +30,5 @@ static struct PyModuleDef vamoduledef =
PyMODINIT_FUNC PyInit_va( void ) PyMODINIT_FUNC PyInit_va( void )
{ {
PyObject* dict; return PyModule_Create(&vamoduledef);
PyObject* module = PyModule_Create( &vamoduledef );
return module;
} }
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