Changeset a2745d in git
- Timestamp:
- Oct 5, 2005, 9:23:21 AM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- c63381543b91935cc4a63be0970edeb34fb4e057
- Parents:
- 29e62514626f845660020d97137e7ff0ee326383
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
r29e625 ra2745d 42 42 BISON = bison 43 43 INSTALL = @INSTALL@ 44 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 44 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 45 45 INSTALL_DATA = @INSTALL_DATA@ 46 46 MKINSTALLDIRS = ./mkinstalldirs … … 54 54 CXXFLAGS = @CXXFLAGS@ ${PIPE} 55 55 CXXTEMPLFLAGS = @CXXTEMPLFLAGS@ 56 ifneq ($(SINGUNAME),ix86-Win) 56 57 CPPFLAGS = -I${srcdir} -I../kernel @CPPFLAGS@ 58 else 59 ## Dirs after @CPPFLAGS@ are for PySingular 60 CPPFLAGS = -I${srcdir} -I../kernel @CPPFLAGS@ -I/usr/include/python2.4 -I/usr/local/include/boost-1_32 -I/home/Singular/singular-python/modules/python 61 endif 57 62 DEFS = -DNDEBUG -DOM_NDEBUG -D@SING_UNAME@ @DEFS@ 58 63 LDFLAGS2 = @LDFLAGS@ … … 60 65 LDFLAGS = -L../kernel -lkernel @LDFLAGS@ 61 66 else 62 LDFLAGS = -L../kernel -L/bin -lkernel @LDFLAGS@ 67 ## -L/usr/local/lib -L/home/Singular/singular-python/modules/python --> PySingular 68 LDFLAGS = -L../kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python 63 69 endif 64 70 LDFLAGSG = -L../kernel -lkernel-g @LDFLAGS@ … … 73 79 # arguments to link 74 80 ifneq ($(SINGUNAME),ix86-Win) 75 LIBS = -lm @NEED_LIBS@ 81 LIBS = -lm @NEED_LIBS@ 76 82 else 77 LIBS = -lsingfac -lsingcf -lntl -static -lreadline -lhtmlhelp -Xlinker -Bdynamic -lgmp -lcygncurses6 83 LIBS = -lsingfac -lsingcf -lntl -static -lreadline -lhtmlhelp -Xlinker -Bdynamic -lgmp -lcygncurses6 -lpython_module -lpython2.4 /usr/local/lib/libboost_python-gcc-d-1_32.dll 78 84 endif 79 85 MP_LIBS = @MP_LIBS@ … … 82 88 83 89 ifdef LD_STATIC 84 LDFLAGS := ${STATIC_LDFLAGS} ${LDFLAGS} 90 LDFLAGS := ${STATIC_LDFLAGS} ${LDFLAGS} 85 91 SING_EXEC = Singular-static 86 LIBS := ${MP_LIBS} ${LIBS} 92 LIBS := ${MP_LIBS} ${LIBS} 87 93 DL_KERNEL = 88 94 else 89 LDFLAGS := ${LD_DYN_FLAGS} ${LDFLAGS} 95 LDFLAGS := ${LD_DYN_FLAGS} ${LDFLAGS} 90 96 SING_EXEC = Singular 91 97 endif … … 174 180 gms.h pcv.h eigenval_ip.h \ 175 181 fegetopt.h distrib.h walk.h \ 176 static.h \182 static.h \ 177 183 omSingularConfig.h 178 184 -
Singular/extra.cc
r29e625 ra2745d 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.2 29 2005-07-27 15:47:53 SingularExp $ */4 /* $Id: extra.cc,v 1.230 2005-10-05 07:23:21 wienand Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 131 131 //#endif /* not HAVE_DYNAMIC_LOADING */ 132 132 133 #ifdef ix86_Win 134 #include <Python.h> 135 #include <python_wrapper.h> 136 #endif 137 138 133 139 // see clapsing.cc for a description of the `FACTORY_*' options 134 140 … … 152 158 extern BOOLEAN jjJanetBasis(leftv res, leftv v); 153 159 160 #ifdef ix86_Win /* PySingular initialized? */ 161 static int PyInitialized = 0; 162 #endif 154 163 155 164 //void emStart(); … … 2604 2613 mipo_id->m[i]=p; 2605 2614 } 2606 new_ring->minideal=id_Copy(alg_ring->qideal,new_ring); 2615 new_ring->minideal=id_Copy(alg_ring->qideal,new_ring); 2607 2616 // convert factors ============================================= 2608 2617 ideal fac_id=idInit(L.length(),1); … … 2620 2629 LL->m[0].rtyp=IDEAL_CMD; 2621 2630 LL->m[0].data=(char *)fac_id; 2622 LL->m[1].rtyp=INTVEC_CMD; 2631 LL->m[1].rtyp=INTVEC_CMD; 2623 2632 LL->m[1].data=(char *)v; 2624 2633 IDDATA(hh)=(char *)LL; 2625 2634 2626 2635 rChangeCurrRing(save_currRing); 2627 2636 currRingHdl=save_currRingHdl; … … 2633 2642 } 2634 2643 else 2644 #endif 2645 #ifdef ix86_Win 2646 /*==================== Python Singular =================*/ 2647 if (strcmp(sys_cmd, "python") == 0) 2648 { 2649 const char* c; 2650 if ((h!=NULL) && (h->Typ()==STRING_CMD)) 2651 { 2652 c=(const char*)h->Data(); 2653 if (!PyInitialized) { 2654 PyInitialized = 1; 2655 Py_Initialize(); 2656 initPySingular(); 2657 } 2658 PyRun_SimpleString(c); 2659 return FALSE; 2660 } 2661 else return TRUE; 2662 } 2663 else 2664 /*==================== Python Singular =================*/ 2665 if (strcmp(sys_cmd, "ipython") == 0) 2666 { 2667 const char* c; 2668 { 2669 if (!PyInitialized) { 2670 PyInitialized = 1; 2671 Py_Initialize(); 2672 initPySingular(); 2673 } 2674 PyRun_SimpleString( 2675 "try: \n\ 2676 __IPYTHON__ \n\ 2677 except NameError: \n\ 2678 argv = [''] \n\ 2679 banner = exit_msg = '' \n\ 2680 else: \n\ 2681 # Command-line options for IPython (a list like sys.argv) \n\ 2682 argv = ['-pi1','In <\\#>:','-pi2',' .\\D.:','-po','Out<\\#>:'] \n\ 2683 banner = '*** Nested interpreter ***' \n\ 2684 exit_msg = '*** Back in main IPython ***' \n\ 2685 \n\ 2686 # First import the embeddable shell class \n\ 2687 from IPython.Shell import IPShellEmbed \n\ 2688 # Now create the IPython shell instance. Put ipshell() anywhere in your code \n\ 2689 # where you want it to open. \n\ 2690 ipshell = IPShellEmbed(argv,banner=banner,exit_msg=exit_msg) \n\ 2691 ipshell()"); 2692 return FALSE; 2693 } 2694 } 2695 else 2696 2635 2697 #endif 2636 2698 /*==================== Error =================*/ … … 2640 2702 } 2641 2703 #endif // HAVE_EXTENDED_SYSTEM 2704
Note: See TracChangeset
for help on using the changeset viewer.