Changeset f230d92 in git
- Timestamp:
- Mar 1, 2017, 5:47:39 PM (7 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- dc29160a567b9e04c172ea21b48f03a654afd0a8
- Parents:
- 4d24f6272fb2b5388b2a23b455a78b4439e1eece
- Files:
-
- 1 added
- 2 deleted
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/Makefile.am
r4d24f6 rf230d92 1 1 ACLOCAL_AMFLAGS = -I ../m4 2 2 3 SUBDIRS=staticdemo bigintm syzextra pyobject customstd gfanlib p olymake singmathic Order3 SUBDIRS=staticdemo bigintm syzextra pyobject customstd gfanlib python polymake singmathic Order -
Singular/dyn_modules/python/interpreter_support.cc
r4d24f6 rf230d92 3 3 #include <boost/python/suite/indexing/vector_indexing_suite.hpp> 4 4 #include <kernel/mod2.h> 5 #include " subexpr.h"5 #include "Singular/subexpr.h" 6 6 #include "Poly.h" 7 7 #include "Ideal.h" -
Singular/dyn_modules/python/python_module.cc
r4d24f6 rf230d92 9 9 #include <Python.h> 10 10 #include <kernel/mod2.h> 11 #include < tok.h>11 #include <Singular/tok.h> 12 12 #include <kernel/structs.h> 13 13 #include <Singular/mod_lib.h> 14 #include < ipid.h>14 #include <Singular/ipid.h> 15 15 16 #include < locals.h>16 #include <Singular/locals.h> 17 17 #include <omalloc/omalloc.h> 18 18 … … 58 58 extern "C" int SI_MOD_INIT(python_module)(SModulFunctions* psModulFunctions) 59 59 { 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 60 73 Py_Initialize(); 61 74 PyRun_SimpleString("from sys import path\n\ -
Singular/dyn_modules/python/ring_wrap.h
r4d24f6 rf230d92 2 2 #define RING_WRAP_HEADER 3 3 #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" 7 7 #include <boost/intrusive_ptr.hpp> 8 8 #include "Number.h" -
configure.ac
r4d24f6 rf230d92 237 237 AC_CONFIG_FILES([Singular/dyn_modules/gfanlib/Makefile]) 238 238 AC_CONFIG_FILES([Singular/dyn_modules/polymake/Makefile]) 239 AC_CONFIG_FILES([Singular/dyn_modules/python/Makefile]) 239 240 AC_CONFIG_FILES([Singular/dyn_modules/customstd/Makefile]) 240 241 AC_CONFIG_FILES([Singular/dyn_modules/pyobject/Makefile]) -
m4/options.m4
r4d24f6 rf230d92 308 308 bi_gfanlib=false 309 309 bi_polymake=false 310 bi_python=false 310 311 bi_customstd=false 311 312 bi_singmathic=false … … 339 340 gfanlib ) bi_gfanlib=true ;; 340 341 polymake ) bi_polymake=true ;; 342 python_module ) bi_python=true ;; 341 343 customstd ) bi_customstd=true ;; 342 344 singmathic ) bi_singmathic=true ;; … … 373 375 AM_CONDITIONAL([SI_BUILTIN_GFANLIB], [test x$bi_gfanlib = xtrue]) 374 376 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]) 375 379 AM_CONDITIONAL([SI_BUILTIN_CUSTOMSTD], [test x$bi_customstd = xtrue]) 376 380 AM_CONDITIONAL([SI_BUILTIN_SINGMATHIC], [test x$bi_singmathic = xtrue])
Note: See TracChangeset
for help on using the changeset viewer.