"Fossies" - the Fresh Open Source Software Archive

Member "NZMATH-1.2.0/nzmath/config/nzmathconf.py" (19 Nov 2012, 3216 Bytes) of package /linux/misc/old/NZMATH-1.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "nzmathconf.py" see the Fossies "Dox" file reference documentation.

    1 # -------------
    2 # NZMATH config
    3 # -------------
    4 #
    5 # Dependencies
    6 # ============
    7 #
    8 # Some third party / platform dependent modules are possibly used,
    9 # and they are configurable.
   10 #
   11 # mpmath
   12 # ------
   13 #
   14 # mpmath is a package providing multiprecision math.
   15 # http://code.google.com/p/mpmath
   16 # This package is used in ecpp module.
   17 #
   18 # If you have mpmath installed, set as the following:
   19 #HAVE_MPMATH = True
   20 #CHECK_MPMATH = False
   21 # Or, if you don't have mpmath installed, set as the following:
   22 #HAVE_MPMATH = False
   23 #CHECK_MPMATH = False
   24 # The default values mean "I don't know; check it later":
   25 HAVE_MPMATH = None
   26 CHECK_MPMATH = True
   27 
   28 #
   29 # sqlite3
   30 # -------
   31 #
   32 # sqlite3 is the default database module for Python, but it need to be
   33 # enabled at the build time.
   34 #
   35 # If you have sqlite3 available, set as the following:
   36 #HAVE_SQLITE3 = True
   37 #CHECK_SQLITE3 = False
   38 # Or, if you don't have sqlite3, set as the following:
   39 #HAVE_SQLITE3 = False
   40 #CHECK_SQLITE3 = False
   41 # The default values mean "I don't know; check it later":
   42 HAVE_SQLITE3 = None
   43 CHECK_SQLITE3 = True
   44 
   45 #
   46 # net availability
   47 # ----------------
   48 #
   49 # Some functions will connect to the Net.
   50 # Desktop machines are usually connected to the Net, but notebooks
   51 # may have connectivity only occasionally.
   52 #
   53 # If sometimes you have net connectivity, set as the following:
   54 HAVE_NET = True
   55 CHECK_NET = False
   56 # Or, if your machine is not connected, set as the following:
   57 #HAVE_NET = False
   58 #CHECK_NET = False
   59 # Or you can let NZMATH check connectivity every time, set as the following:
   60 #HAVE_NET = None
   61 #CHECK_NET = True
   62 
   63 #
   64 # psyco
   65 # -----
   66 #
   67 # psyco is a package providing JIT compiler for Python.
   68 # http://psyco.sourceforge.net/
   69 # The package is usable only on x86 CPUs.
   70 # This package is used in factor/mpqs module.
   71 #
   72 # If you have psyco installed, and would like to use it fully, set:
   73 #HAVE_PSYCO = True
   74 #CHECK_PSYCO = False
   75 # If you would like to disable it no matter whether it is available:
   76 #HAVE_PSYCO = False
   77 #CHECK_PSYCO = False
   78 # The default values mean "I don't know, check it and use it if possible":
   79 HAVE_PSYCO = None
   80 CHECK_PSYCO = True
   81 
   82 #
   83 # Assumptions
   84 # ===========
   85 #
   86 # Some conjectures are useful for assuring the validity of a fast
   87 # algorithm.
   88 #
   89 # All assumptions are default to False, but you can set them True if
   90 # you believe them.
   91 #
   92 # GRH
   93 # ---
   94 #
   95 # Generalized Riemann Hypothesis.
   96 # For example, primality test is O((log n)**2) if GRH is true
   97 # while O((log n)**6) or something without it.
   98 #
   99 # If you believe GRH as the truth:
  100 #GRH = True
  101 # The default is, of course, conservatively doubting it:
  102 GRH = False
  103 
  104 #
  105 # Files
  106 # =====
  107 #
  108 # data directory
  109 # --------------
  110 #
  111 # The directory where nzmath (static) data files are stored.
  112 # The default will be os.path.join(sys.prefix, 'share', 'nzmath')
  113 # or os.path.join(sys.prefix, 'Data', 'nzmath') on Windows.
  114 #
  115 # If your *nix computer installs NZMATH as a system program:
  116 #DATADIR = '/usr/share/nzmath'
  117 #CHECK_DATADIR = False
  118 # If it is an optional program:
  119 #DATADIR = '/usr/local/share/nzmath'
  120 #CHECK_DATADIR = False
  121 # Windows users may have more aggressive path:
  122 #DATADIR = r'C:\Python25\Data'
  123 #CHECK_DATADIR = False
  124 # The default values mean "I don't know; check it later":
  125 DATADIR = None
  126 CHECK_DATADIR = True