Changeset f230d92 in git


Ignore:
Timestamp:
Mar 1, 2017, 5:47:39 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
dc29160a567b9e04c172ea21b48f03a654afd0a8
Parents:
4d24f6272fb2b5388b2a23b455a78b4439e1eece
Message:
dyn_mod/python: adapt to autoconf/automake
Files:
1 added
2 deleted
5 edited
2 moved

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/Makefile.am

    r4d24f6 rf230d92  
    11ACLOCAL_AMFLAGS = -I ../m4
    22
    3 SUBDIRS=staticdemo bigintm syzextra pyobject customstd gfanlib polymake singmathic Order
     3SUBDIRS=staticdemo bigintm syzextra pyobject customstd gfanlib python polymake singmathic Order
  • Singular/dyn_modules/python/interpreter_support.cc

    r4d24f6 rf230d92  
    33#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
    44#include <kernel/mod2.h>
    5 #include "subexpr.h"
     5#include "Singular/subexpr.h"
    66#include "Poly.h"
    77#include "Ideal.h"
  • Singular/dyn_modules/python/python_module.cc

    r4d24f6 rf230d92  
    99#include <Python.h>
    1010#include <kernel/mod2.h>
    11 #include <tok.h>
     11#include <Singular/tok.h>
    1212#include <kernel/structs.h>
    1313#include <Singular/mod_lib.h>
    14 #include <ipid.h>
     14#include <Singular/ipid.h>
    1515
    16 #include <locals.h>
     16#include <Singular/locals.h>
    1717#include <omalloc/omalloc.h>
    1818
     
    5858extern "C" int SI_MOD_INIT(python_module)(SModulFunctions* psModulFunctions)
    5959{
     60  char *py=getenv("PYTHONPATH");
     61  char buf[1024];
     62  if (py!=NULL)
     63  {
     64    strcpy(buf,py);
     65    strcat(buf,":");
     66    strcat(buf,feResource('s',FALSE));
     67  }
     68  else
     69    strcpy(buf,feResource('s',FALSE));
     70  Print("setting PYTHONAPTH to %s\n",buf);
     71  setenv("PYTHONPATH",buf,1);
     72
    6073  Py_Initialize();
    6174  PyRun_SimpleString("from sys import path\n\
  • Singular/dyn_modules/python/ring_wrap.h

    r4d24f6 rf230d92  
    22#define RING_WRAP_HEADER
    33#include "polys/monomials/ring.h"
    4 #include "grammar.h"
    5 #include "subexpr.h"
    6 #include "ipid.h"
     4#include "Singular/grammar.h"
     5#include "Singular/subexpr.h"
     6#include "Singular/ipid.h"
    77#include <boost/intrusive_ptr.hpp>
    88#include "Number.h"
  • configure.ac

    r4d24f6 rf230d92  
    237237AC_CONFIG_FILES([Singular/dyn_modules/gfanlib/Makefile])
    238238AC_CONFIG_FILES([Singular/dyn_modules/polymake/Makefile])
     239AC_CONFIG_FILES([Singular/dyn_modules/python/Makefile])
    239240AC_CONFIG_FILES([Singular/dyn_modules/customstd/Makefile])
    240241AC_CONFIG_FILES([Singular/dyn_modules/pyobject/Makefile])
  • m4/options.m4

    r4d24f6 rf230d92  
    308308  bi_gfanlib=false
    309309  bi_polymake=false
     310  bi_python=false
    310311  bi_customstd=false
    311312  bi_singmathic=false
     
    339340       gfanlib ) bi_gfanlib=true ;;
    340341       polymake ) bi_polymake=true ;;
     342       python_module ) bi_python=true ;;
    341343       customstd ) bi_customstd=true ;;
    342344       singmathic ) bi_singmathic=true ;;
     
    373375 AM_CONDITIONAL([SI_BUILTIN_GFANLIB], [test x$bi_gfanlib = xtrue])
    374376 AM_CONDITIONAL([SI_BUILTIN_POLYMAKE], [test x$bi_polymake = xtrue])
     377 AM_CONDITIONAL([SI_BUILTIN_PYTHON_MODULE], [test x$bi_python = xtrue])
     378 AM_CONDITIONAL([HAVE_PYTHON_MODULE], [test x$bi_python = xtrue])
    375379 AM_CONDITIONAL([SI_BUILTIN_CUSTOMSTD], [test x$bi_customstd = xtrue])
    376380 AM_CONDITIONAL([SI_BUILTIN_SINGMATHIC], [test x$bi_singmathic = xtrue])
Note: See TracChangeset for help on using the changeset viewer.