henjo / gnucap-python Goto Github PK
View Code? Open in Web Editor NEWPython plugins for gnucap
License: GNU General Public License v2.0
Python plugins for gnucap
License: GNU General Public License v2.0
COPYING
contains the GPLv3 license text, whereas LICENSE
apparently contains a copy of the GPLv2.
None of the other files contain a license statement. according to github, the project is under GPLv3. please let us know if this is your intent. i suggest to add a license header to each individual source code file.
(perhaps it will be sufficient to just delete the LICENSE
file...?)
thank you.
I was trying to get the tests running on pycircuits so tried to install python-gnucap.
I had to create a link from ../gnucap-2009-12-07/src/ gnucap so that the include files could be found and this diff
diff --git a/numpy_interface.h b/numpy_interface.h
index 226a8c2..e617d9e 100644
--- a/numpy_interface.h
+++ b/numpy_interface.h
@@ -1,4 +1,4 @@
-#include <gnucap/m_matrix.h>
+#include "gnucap/m_matrix.h"
#include <Python.h>
#include <numpy/arrayobject.h>
I then get this error
(py27)michaelt@michaelt-VirtualBox:/home/dub-projects/ismtxrx/users/mthompson/work/gnucap-python$ python setup.py build
running build
running build_py
copying gnucap.py -> build/lib.linux-i686-2.7
running build_ext
building '_gnucap' extension
swigging gnucap.i to gnucap_wrap.cpp
swig -python -c++ -DHAS_NUMPY -Wall -o gnucap_wrap.cpp gnucap.i
gnucap.i:171: Warning(517): Director class 'SIM' is abstract, abstract method 'setup' is private
gnucap.i:196: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:197: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:198: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:199: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:201: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:202: Warning(454): Setting a pointer/reference variable may leak memory.
gnucap.i:203: Warning(454): Setting a pointer/reference variable may leak memory.
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gnucap.cc -o build/temp.linux-i686-2.7/gnucap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /usr/include/python2.7/Python.h:8:0,
from numpy_interface.h:2,
from gnucap.cc:9:
/usr/include/python2.7/pyconfig.h:1155:0: warning: "POSIX_C_SOURCE" redefined
/usr/include/features.h:163:0: note: this is the location of the previous definition
/usr/include/python2.7/pyconfig.h:1177:0: warning: "XOPEN_SOURCE" redefined
/usr/include/features.h:165:0: note: this is the location of the previous definition
gnucap.cc: In function ‘std::string command(char)’:
gnucap.cc:25:60: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:27:39: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:29:22: error: incomplete type ‘CARD_LIST’ used in nested name specifier
gnucap.cc:19:19: warning: ignoring return value of ‘char tmpnam(char*)’, declared with attribute warn_unused_result
gnucap/constant.h: At global scope:
gnucap/constant.h:98:14: warning: ‘LINEAR’ defined but not used
/usr/include/python2.7/numpy/__multiarray_api.h:1187:1: warning: ‘int _import_array()’ defined but not used
error: command 'gcc' failed with exit status 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.