Changeset 1d6ec3 in git for Singular/pyobject_setup.cc
- Timestamp:
- Dec 17, 2012, 5:58:15 PM (11 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 2cdd72c35095d3ff171783d5f5a677d4f6658c96
- Parents:
- f51a5bd5a84a0bdc21e8b4b7357a3d1f43bae4e6f4399e865a8d7da06b4d0e0a3d19e4c3acc2d8dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/pyobject_setup.cc
rf51a5b r1d6ec3 19 19 #include <Singular/ipshell.h> 20 20 21 /* whether pyobject module is linked statically or dynamically */ 22 23 #ifdef EMBED_PYTHON // Case: we include the pyobject interface in the binary 24 25 #ifdef HAVE_PYTHON 21 #ifdef EMBED_PYTHON 26 22 #include "pyobject.cc" 27 static BOOLEAN pyobject_load()28 {29 pyobject_init(iiAddCproc);30 return FALSE;31 }32 33 #else // Forced embedding, but no (development version of) python available!34 static BOOLEAN pyobject_load() { return TRUE; }35 23 #endif 36 24 37 38 # else // Case: pyobject may be loaded from a dynamic module (prefered variant)39 // Note: we do not need python at compile time.40 25 static BOOLEAN pyobject_load() 41 26 { 42 27 return jjLOAD("pyobject.so", TRUE); 43 28 } 44 #endif45 46 47 29 48 30 /// blackbox support - initialization via autoloading
Note: See TracChangeset
for help on using the changeset viewer.