[pytango] 283/483: removed garbage

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:14:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 82b9452d1cf16d8437dc77038e7620e2486fb1c1
Author: tiagocoutinho <tiagocoutinho at 4e9c00fd-8f2e-0410-aa12-93ce3db5e235>
Date:   Tue Sep 24 12:54:24 2013 +0000

    removed garbage
    
    git-svn-id: http://svn.code.sf.net/p/tango-cs/code/bindings/PyTango/trunk@23764 4e9c00fd-8f2e-0410-aa12-93ce3db5e235
---
 src/sip/test/Makefile     | 47 ----------------------------------------------
 src/sip/test/configure.py | 29 ----------------------------
 src/sip/test/test.cpp     | 25 ------------------------
 src/sip/test/test.h       |  3 ---
 src/sip/test/test.sip     | 48 -----------------------------------------------
 5 files changed, 152 deletions(-)

diff --git a/src/sip/test/Makefile b/src/sip/test/Makefile
deleted file mode 100644
index c1a2fdc..0000000
--- a/src/sip/test/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-TARGET = pytest.so
-OFILES = sippytestcmodule.o sippyteststdvector1801.o
-HFILES = sipAPIpytest.h 
-
-CC = gcc
-CXX = g++
-LINK = g++
-CPPFLAGS = -DNDEBUG -I. -I/usr/include/python2.6
-CFLAGS =  -O2 -g -fPIC -Wall -W
-CXXFLAGS =  -O2 -g -fPIC -Wall -W
-LFLAGS = -z defs -shared -Wl,--version-script=pytest.exp
-LIBS = -lpython2.6 -ltest
-.SUFFIXES: .c .o .cpp .cc .cxx .C
-
-
-.cpp.o:
-	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
-
-.cc.o:
-	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
-
-.cxx.o:
-	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
-
-.C.o:
-	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<
-
-.c.o:
-	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
-
-all: $(TARGET)
-
-$(OFILES): $(HFILES)
-
-$(TARGET): $(OFILES)
-	@echo '{ global: initpytest; local: *; };' > pytest.exp
-	$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)
-
-install: $(TARGET)
-	@test -d $(DESTDIR)/usr/lib/python2.6/dist-packages || mkdir -p $(DESTDIR)/usr/lib/python2.6/dist-packages
-	cp -f $(TARGET) $(DESTDIR)/usr/lib/python2.6/dist-packages/$(TARGET)
-
-clean:
-	-rm -f $(TARGET)
-	-rm -f sippytestcmodule.o
-	-rm -f sippyteststdvector1801.o
-	-rm -f pytest.exp
diff --git a/src/sip/test/configure.py b/src/sip/test/configure.py
deleted file mode 100644
index 59bea49..0000000
--- a/src/sip/test/configure.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import os
-import sys
-import sipconfig
-
-# The name of the SIP build file generated by SIP and used by the build
-# system.
-build_file = "test.sbf"
-
-# Get the SIP configuration information.
-config = sipconfig.Configuration()
-
-# Run SIP to generate the code.
-os.system(" ".join([config.sip_bin, "-c", ".", "-b", build_file, "test.sip"]))
-
-# Create the Makefile.
-makefile = sipconfig.SIPModuleMakefile(config, build_file)
-
-python_lib = "python{v[0]}.{v[1]}".format(v=sys.version_info)
-
-# Add the library we are wrapping.  The name doesn't include any platform
-# specific prefixes or extensions (e.g. the "lib" prefix on UNIX, or the
-# ".dll" extension on Windows).
-makefile.extra_libs = [python_lib, "test"]
-
-# see all undefined references
-makefile.extra_lflags = ['-z defs']
-
-# Generate the Makefile itself.
-makefile.generate()
diff --git a/src/sip/test/test.cpp b/src/sip/test/test.cpp
deleted file mode 100644
index 718d834..0000000
--- a/src/sip/test/test.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "test.h"
-
-#include <vector>
-
-std::vector<int *> get_numbers(int n)
-{
-    std::vector<int *> v;
-    for(int i = 0; i < n; ++i)
-    {
-        int *val = new int;
-        *val = i;
-        v.push_back(val);
-    }
-    return v;
-}
-
-
-void set_numbers(std::vector<int *> *v)
-{
-    for(int i = 0; i < v->size(); ++i)
-    {
-        delete (*v)[i];
-    }
-	delete v;
-}
diff --git a/src/sip/test/test.h b/src/sip/test/test.h
deleted file mode 100644
index 308dc50..0000000
--- a/src/sip/test/test.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#include <vector>
-
-std::vector<int *> get_numbers(int n);
diff --git a/src/sip/test/test.sip b/src/sip/test/test.sip
deleted file mode 100644
index c720b94..0000000
--- a/src/sip/test/test.sip
+++ /dev/null
@@ -1,48 +0,0 @@
-%Module pytest
-
-%MappedType std::vector<int*>
-{
-%TypeHeaderCode
-#include <vector>
-%End
-
-%ConvertToTypeCode
-if (sipIsErr == NULL)
-{	
-bool aReturnFlag = PyList_Check(sipPy);
-for(int i = 0;aReturnFlag && i < PyList_Size(sipPy);++i)
-	aReturnFlag = PyInt_Check(PyList_GET_ITEM(sipPy,i));
-return aReturnFlag;
-}
- 
-*sipCppPtr = new std::vector<int*>(PyList_Size(sipPy));
-for(int i = 0;i < PyList_Size(sipPy);++i)
-{
-  int *v = new int;
-  *v = PyInt_AS_LONG(PyList_GET_ITEM(sipPy,i));
-  (*sipCppPtr)->operator[](i) = v;
-}
-    return sipGetState(sipTransferObj);
-%End
-
-%ConvertFromTypeCode
-PyObject* aReturnListPt = PyList_New(sipCpp->size());
-std::vector<int*>::iterator vIter = sipCpp->begin();
-
-for(int i = 0;vIter != sipCpp->end();++vIter,++i)
-{
-  int *v = *vIter;
-  PyList_SET_ITEM(aReturnListPt,i,PyInt_FromLong(*v));
-  delete v;
-}
-//delete sipCpp;
-return aReturnListPt;
-%End
-
-};
-
-%ModuleHeaderCode
-#include "test.h"
-%End
-
-std::vector<int *> get_numbers(int n);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git



More information about the debian-science-commits mailing list