document some tasks in dataframe.lisp that need resolution.
[CommonLispStat.git] / cls.asd
blob3b4e4101e84f75f3bb09b10a013e86eaad53a81e
1 ;;  -*- mode: lisp -*-
2 ;;; Time-stamp: <2012-10-05 04:09:33 tony>
3 ;;; Created:    <2005-05-30 17:09:47 blindglobe>
4 ;;; File:       cls.asd
5 ;;; Author:     AJ Rossini <blindglobe@gmail.com>
6 ;;; Copyright:  (c) 2005--2010, by AJ Rossini <blindglobe@gmail.com>
7 ;;; License:    MIT, see the file LICENSE.mit in this directory for details.
8 ;;; Purpose:    ASDF specification for Common Lisp Statistical System
10 ;;; What is this talk of 'release'? Klingons do not make software
11 ;;; 'releases'.  Our software 'escapes', leaving a bloody trail of
12 ;;; designers and quality assurance people in its wake.
14 ;; Load ASDF if it isn't loaded -- BUT we need to ensure that we sync
15 ;; properly with the new ASDF!  Maybe we should make the git repo a
16 ;; submodule, and tag a particular version to use, pulling that
17 ;; version?  However, most "modern" CLs use the "new" (>=v2) ASDF.
19 #-asdf(load (pathname (concatenate 'string (namestring *cls-external-dir*) "asdf")))
21 (in-package :cl-user)
23 ;;(pushnew *cls-asdf-dir* asdf:*central-registry*)
24 ;;(pushnew #p"C:/Lisp/libs/" asdf-util:*source-dirs* :test #'equal) ; eg for Microsoft
26 (cl:defpackage #:cls-system
27     (:use :common-lisp :asdf))
29 (in-package #:cls-system)
31 ;;; To avoid renaming everything from *.lsp to *.lisp...  borrowed
32 ;;; from Cyrus Harmon's work, for example for the ch-util.  NOT secure
33 ;;; against serving multiple architectures/hardwares from the same
34 ;;; file system (i.e. PPC and x86 would not be differentiated).
35 ;;; However, this might be more of a solution for quicklisp?
37 (defclass cls-lsp-source-file (cl-source-file) ())
38 (defparameter *fasl-directory*
39    (make-pathname :directory '(:relative
40                                #+sbcl "fasl-sbcl"
41                                #+openmcl "fasl-ccl"
42                                #+openmcl "fasl-ccl"
43                                #+cmu "fasl-cmucl"
44                                #+clisp "fasl-clisp"
45                                #-(or sbcl openmcl clisp cmucl) "fasl"
46                                )))
48 ;;; Handle Luke's *.lsp suffix
49 (defmethod source-file-type ((c cls-lsp-source-file) (s module)) "lsp")
50 (defmethod asdf::output-files :around ((operation compile-op)
51                                        (c cls-lsp-source-file))
52   (list (merge-pathnames *fasl-directory*
53                          (compile-file-pathname (component-pathname c)))))
54 ;;; again, thanks to Cyrus for saving me time...
57 (defsystem "cls"
58   :name "Common Lisp Statistical System"
59   :version #.(with-open-file
60                  (vers (merge-pathnames "version.lisp-expr" *load-truename*))
61                (read vers))
62   :author "A.J. Rossini <blindglobe@gmail.com>"
63   :license "MIT"
64   :description "Common Lisp Statistics (CLS): A System for Statistical
65   Computing with Common Lisp; based on Common LispStat (CLS alpha1) by
66   Luke Tierney <luke@stat.uiowa.edu> (apparently originally written
67   when Luke was at CMU, on leave at Bell Labs?).  Last touched by him
68   in 1991, then by AJR starting in 2005."
69   :serial t
70   :depends-on (;;  :cldoc  ;; documentation tool? (not Lit Prog, but coding support)
71                ;;  :cffi   ;; only needed within lisp-matrix
72                :xarray
73                :lisp-matrix ;; on fnv, cl-blapack, ffa
74                :listoflist
75                :lift
76                :rsm-string ;; need something for importing CSV files into listoflist or arrays.
77                ;;; need to select pRNG stream system
78                ;; :cl-random ;; or cl-variates, or...?
79                :cl-variates
80                ;;; if graphics exist, then...
81                ;; :cl-cairo2  :cl-2d
82                )
83   :components ((:static-file "version" :pathname #p"version.lisp-expr")
84                (:static-file "LICENSE.mit")
85                (:static-file "README")
87                (:module
88                 "packaging"
89                 :pathname #p"src/"
90                 :serial t
91                 :components
92                 ((:file "packages")
93                  (:file "config")))
95                (:module
96                 "proto-objects"
97                 :pathname "src/objsys/"
98                 :serial t
99                 :depends-on ("packaging")
100                 :components
101                 ((:cls-lsp-source-file "lsobjects")))
103                (:module "cls-core"
104                         :pathname "src/basics/"
105                         :serial t
106                         :depends-on ("packaging" "proto-objects")
107                         :components
108                         ((:cls-lsp-source-file "lstypes")
109                          (:cls-lsp-source-file "lsfloat")
110                          
111                          (:cls-lsp-source-file "compound")
112                          (:cls-lsp-source-file "lsmacros" 
113                                                     :depends-on ("compound"))
114                          
115                          (:cls-lsp-source-file "lsmath"
116                                                     :depends-on ("compound"
117                                                                  "lsmacros"
118                                                                  "lsfloat"))))
120 ;;             (:module
121 ;;              "numerics-internal"
122 ;;              :pathname "src/numerics/"
123 ;;              :depends-on ("packaging" "proto-objects" "cls-core")
124 ;;              :components
125 ;;              ((:cls-lsp-source-file "cffiglue")
126 ;;               (:cls-lsp-source-file "dists"
127 ;;                                          :depends-on ("cffiglue"))
128 ;; #|
129 ;;               (:cls-lsp-source-file "matrices"
130 ;;                                          :depends-on ("cffiglue"))
131 ;;               (:cls-lsp-source-file "ladata"
132 ;;                                          :depends-on ("cffiglue"
133 ;;                                                       "matrices"))
134 ;;               (:file "linalg"
135 ;;                      :depends-on ("cffiglue"
136 ;;                                   "matrices"
137 ;;                                   "ladata"))
138 ;; |#
139 ;;               ))
142                ;; Dataframes and statistical structures.
143                (:module
144                 "stat-data"
145                 :pathname "src/data/"
146                 :depends-on ("packaging"
147                              "proto-objects"
148                              "cls-core"
149                              ;; "numerics-internal"
150                              )
151                 :components
152                 ((:file "dataframe")
153                  (:file "dataframe-array")
154                  (:file "dataframe-matrixlike")
155                  (:file "dataframe-listoflist")
156                  (:file "data")
157                  (:file "data-xls-compat")
158                  (:file "import")))
160                (:module
161                 "cls-basics"
162                 :pathname "src/basics/"
163                 :depends-on ("packaging"
164                              "proto-objects"
165                              "cls-core"
166                              ;; "numerics-internal"
167                              "stat-data")
168                 :components
169                 ((:cls-lsp-source-file "lsbasics")))
172                
173                (:module
174                 "descriptives"
175                 :pathname "src/describe/"
176                 :depends-on ("packaging"
177                              "proto-objects"
178                              "cls-core"
179                              ;; "numerics-internal"
180                              "stat-data"
181                              "cls-basics")
182                 :components
183                 ((:cls-lsp-source-file "statistics")))
185                (:module
186                 "visualize"
187                 :pathname "src/visualize/"
188                 :depends-on ("cls-core")
189                 :components
190                 ((:file "plot")))
195 ;;; FIXME:  OPTIMIZE USES ORIG CLS CFFI-based LIBCODE, NEED TO REPLACE WITH ALT MINIMIZERS
196                (:module
197                 "optimization"
198                 :pathname "src/numerics/"
199                 :depends-on ("packaging"
200                              "proto-objects"
201                              "cls-core"
202                              ;; "numerics-internal"
203                              "stat-data"
204                              "cls-basics")
205                 :components
206                 ((:file "optimize")))
207                  
208                
209                ;; Applications
210                (:module
211                 "stat-models"
212                 :pathname "src/stat-models/"
213                 :depends-on ("packaging"
214                              "proto-objects"
215                              "cls-core"
216                              ;;   "numerics-internal"
217                              "cls-basics"
218                              "descriptives"
219                              "optimization")
220                 :components
221                 ((:file "regression")
222                  ;; (:cls-lsp-source-file "nonlin"
223                  ;;       :depends-on ("regression"))
224                  ;; (:cls-lsp-source-file "bayes"
225                  ;;       :depends-on ("regression"))
226                  ))
229                ;; Applications
230                (:module
231                 "example-data"
232                 :pathname "Data/"
233                 :depends-on ("packaging"
234                              "proto-objects"
235                              "cls-core"
236                              ;; "numerics-internal"
237                              "cls-basics"
238                              "descriptives"
239                              ;;  "optimization"
240                              )
241                 :components
242                 ((:file "examples")
243                  (:cls-lsp-source-file "absorbtion")
244                  (:cls-lsp-source-file "diabetes")
245                  (:cls-lsp-source-file "leukemia")
246                  (:cls-lsp-source-file "randu")
247                  (:cls-lsp-source-file "aircraft")
248                  (:cls-lsp-source-file "metabolism")
249                  (:cls-lsp-source-file "book")
250                  (:cls-lsp-source-file "heating")
251                  (:cls-lsp-source-file "oxygen")
252                  (:cls-lsp-source-file "stackloss") 
253                  (:cls-lsp-source-file "car-prices")
254                  (:cls-lsp-source-file "iris")
255                  (:cls-lsp-source-file "puromycin")
256                  (:cls-lsp-source-file "tutorial")))
258                (:module
259                  "lisp-stat-unittest"
260                 :depends-on  ("packaging" "proto-objects"
261                               "cls-core"
262                               ;; "numerics-internal" 
263                               "stat-data"
264                               "cls-basics"
265                               "descriptives"
266                               ;; "optimization"
267                               ;; "stat-models"
268                               "example-data")
269                  :pathname "src/unittests/"
270                  :components ((:file "unittests")
271                               (:file "unittests-lstypes" :depends-on ("unittests"))
272                               (:file "unittests-specfn" :depends-on ("unittests"))
273                               ;;    (:file "unittests-prob" :depends-on ("unittests"))
274                               (:file "unittests-proto" :depends-on ("unittests"))
275                               (:file "unittests-regression" :depends-on ("unittests"))
276                               (:file "unittests-listoflist" :depends-on ("unittests"))
277                               (:file "unittests-arrays" :depends-on ("unittests"))
278                               (:file "unittests-dataframe" :depends-on ("unittests"))))))
282 ;;; NEED TO ADD A TEST OPERATION
283  (defmethod perform ((o test-op) (c (eql (find-system :cls))))
284     (describe (lift:run-tests :suite 'lisp-stat-unittests::lisp-stat-ut)))