|
12 | 12 | (eval-when (:compile-toplevel)
|
13 | 13 | (error "This ASDF file should be run interpreted."))
|
14 | 14 |
|
| 15 | +(eval-when (compile load eval) |
| 16 | + (import '(asdf:defsystem asdf:load-op asdf:test-op))) |
15 | 17 |
|
16 | 18 | ;;; CL-Python is split into several ASDF systems, to make it possible to load
|
17 | 19 | ;;; specific components -- in particular, to load the compiler or parser without
|
|
31 | 33 | (muffle-warning c))))))
|
32 | 34 | (funcall thunk)))
|
33 | 35 |
|
34 |
| -(defsystem "clpython/basic" |
| 36 | +(asdf:defsystem "clpython/basic" |
35 | 37 | :description "CLPython package and utils"
|
36 | 38 | :depends-on ("closer-mop")
|
37 | 39 | :serial t
|
|
53 | 55 | (when (asdf:find-system "yacc" nil)
|
54 | 56 | (pushnew :have-cl-yacc *features*))
|
55 | 57 |
|
56 |
| -(defsystem "clpython/parser" |
| 58 | +(asdf:defsystem "clpython/parser" |
57 | 59 | :description "Python parser, code walker, and pretty printer"
|
58 | 60 | :depends-on ("clpython/basic"
|
59 | 61 | "closer-mop"
|
|
68 | 70 | (:file "walk" )
|
69 | 71 | (:file "pprint" )))))
|
70 | 72 |
|
71 |
| -(defsystem "clpython/compiler" |
| 73 | +(asdf:defsystem "clpython/compiler" |
72 | 74 | :description "Python compiler"
|
73 | 75 | :depends-on ("clpython/basic" "clpython/parser" "clpython/runtime" "closer-mop")
|
74 | 76 | :serial t
|
|
81 | 83 | (:file "generator" )
|
82 | 84 | (:file "optimize" )))))
|
83 | 85 |
|
84 |
| -(defsystem "clpython/runtime" |
| 86 | +(asdf:defsystem "clpython/runtime" |
85 | 87 | :description "Python runtime environment"
|
86 | 88 | :depends-on ("clpython/basic" "closer-mop" #+(or abcl clisp ecl) "cl-custom-hash-table" "cl-fad")
|
87 | 89 | :components ((:module "runtime"
|
|
96 | 98 | (:file "run" )
|
97 | 99 | (:file "import" )))))
|
98 | 100 |
|
99 |
| -(defsystem "clpython/lib" |
| 101 | +(asdf:defsystem "clpython/lib" |
100 | 102 | :description "Python module library"
|
101 | 103 | :depends-on ("clpython/basic" "clpython/runtime" "clpython/compiler" #| TODO: remove compiler dep |#)
|
102 | 104 | :components ((:module "lib"
|
|
141 | 143 | (:file "time" :depends-on ("lsetup"))
|
142 | 144 | (:file "_weakref" :depends-on ("lsetup"))))))
|
143 | 145 |
|
144 |
| -(defsystem "clpython/contrib" |
| 146 | +(asdf:defsystem "clpython/contrib" |
145 | 147 | :description "CLPython contributions and experiments"
|
146 | 148 | :depends-on ("clpython/basic" "clpython/runtime" "clpython/compiler")
|
147 | 149 | :components ((:module "contrib"
|
|
0 commit comments