Changeset b3cd39 in git


Ignore:
Timestamp:
Dec 4, 2012, 4:18:43 PM (11 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
3c4ee7ec0db9654a8c35db2316417a2de54aa6e6
Parents:
6fcddc9d1ce61bb4b060ffc6ead86cd70694c9a8
git-author:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-12-04 16:18:43+01:00
git-committer:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-12-04 16:18:52+01:00
Message:
Experimenting with pyobject
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r6fcddc9 rb3cd39  
    3737
    3838bin_SCRIPTS = libsingular-config
     39
  • Singular/Makefile.am

    r6fcddc9 rb3cd39  
    390390MOD: ${abs_top_builddir}/libpolys/polys/.libs
    391391        ln -snf ${abs_top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD
     392
     393
     394if PYTHON_USE
     395   PACKAGES=pyobject
     396   moduledir = $(bindir)
     397   module_LTLIBRARIES=pyobject.so
     398   pyobject_so_SOURCES = pyobject.cc
     399   pyobject_so_LIBADD =  libSingular.la -lnumeric -lkernel -lpolys  -lcoeffs \
     400  -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) \
     401$(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}
     402
     403
     404   pyobject_so_CPPFLAGS  = ${AM_CPPFLAGS} @PYTHON_CSPEC@ ${Singular_LDADD} ${AMLDFLAGS}
     405   pyobject_so_LDFLAGS = ${AMLDFLAGS}  -module -avoid-version @PYTHON_LSPEC@ \
     406 -DHUHUHUHUHU ${pyobject_so_LIBADD}
     407endif
  • Singular/blackbox.h

    r6fcddc9 rb3cd39  
    5858
    5959/// default procedure blackboxDefaultOp3, to be called as "default:" branch
    60 BOOLEAN blackboxDefaultOp3(int op,leftv l, leftv r1,leftv r2, leftv r3);
     60BOOLEAN blackbox_default_Op3(int op,leftv l, leftv r1,leftv r2, leftv r3);
    6161
    6262/// default procedure blackboxDefaultOpM, to be called as "default:" branch
  • Singular/pyobject.cc

    r6fcddc9 rb3cd39  
    1515#include "config.h"
    1616#include <kernel/mod2.h>
     17  //#include <misc/auxiliary.h>
     18  //#include "newstruct.h"
     19
     20#include <Python.h>
     21
     22#include <Singular/ipid.h>
     23#include <Singular/blackbox.h>
     24#include <Singular/lists.h>
     25#include <Singular/ipid.h>
     26#include <Singular/ipshell.h>
     27#include <Singular/newstruct.h>
     28
     29
    1730#include <misc/auxiliary.h>
    18 #include "newstruct.h"
    1931
    2032#include <omalloc/omalloc.h>
    2133
    2234#include <kernel/febase.h>
    23 #include <kernel/intvec.h>
     35#include <misc/intvec.h>
    2436
    2537#include "subexpr.h"
     
    2739#include "ipid.h"
    2840#include "blackbox.h"
    29 
    30 #include <Python.h>
     41#include "ipshell.h"
     42
     43
     44
     45
     46  //#include <Python.h>
    3147// #include <iterator>             // std::distance
    3248// #include <stdio.h>
     
    587603    return FALSE;
    588604
    589   return blackboxDefaultOp3(op, res, arg1, arg2, arg3);
     605  return blackbox_default_Op3(op, res, arg1, arg2, arg3);
    590606}
    591607
     
    687703
    688704// forward declaration
    689 int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
    690                BOOLEAN(*func)(leftv res, leftv v));
     705//int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic,
     706//               BOOLEAN(*func)(leftv res, leftv v));
    691707
    692708#define ADD_C_PROC(name) iiAddCproc("", (char*)#name, FALSE, name);
  • configure.ac

    r6fcddc9 rb3cd39  
    5858LB_CHECK_NTL(5.0,,AC_MSG_WARN([Unable to find NTL (which is strongly recommended) on your machine: please use --with-ntl=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
    5959LB_CHECK_FLINT(2.3,,AC_MSG_WARN([Unable to find FLINT (which is strongly recommended) on your machine: please use --with-flint=PATH_TO_DIR_CONTAINING_LIB_AND_INCLUDE (see also ./configure --help if you do not understand what we are talking about)]))
     60
     61AX_PYTHON_WITH()
     62AX_PYTHON_VERSION_ENSURE( [2.4] )
     63AX_PYTHON_LSPEC()
     64AX_PYTHON_CSPEC()
    6065
    6166AC_FUNC_ERROR_AT_LINE
Note: See TracChangeset for help on using the changeset viewer.