forked from pinterface/burgled-batteries
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathburgled-batteries.asd
46 lines (41 loc) · 1.94 KB
/
burgled-batteries.asd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
;;; burgled-batteries.asd --- ASDF system definition for burgled-batteries
#-burgled-batteries.guess-not-grovel
(cl:eval-when (:load-toplevel :execute)
(asdf:load-system "cffi-grovel"))
(defpackage #:burgled-batteries-system (:use #:asdf #:cl #-burgled-batteries.guess-not-grovel #:cffi-grovel))
(in-package #:burgled-batteries-system)
(defsystem "burgled-batteries"
:depends-on (#:cffi #:alexandria #:parse-declarations-1.0 #:trivial-garbage
#-burgled-batteries.guess-not-grovel #:cl-fad)
:name "burgled-batteries"
:author "pinterface <[email protected]>"
:license "MIT"
:description "Lisp-Python interface"
:long-description "
This system provides support for embedding Python into Common Lisp via CFFI.
It uses cffi-grovel to determine sizes and values of some assorted Python types
and constants. However, if you'd rather avoid this, or grovelling is not
possible for you, a best-guess effort can also be made. You can note your
preference for guessing by evaluating the following form before telling ASDF to
load this system:
(push :burgled-batteries.guess-not-grovel *features*)
If you /would/ like to use the groveller, B-B will attempt to determine the
location of Python's C header files, and will prompt you to specify the
appropriate directory if one cannot be found. To grovel against a specific
copy of Python's header files, you may need to edit
(defparameter *cpython-include-dir* ...)
in #p\"grovel-include-dir.lisp\".
"
:serial t
:components
((:file "packages")
#-burgled-batteries.guess-not-grovel (:file "grovel-include-dir")
#-burgled-batteries.guess-not-grovel (grovel-file "grovel")
#+burgled-batteries.guess-not-grovel (:file "grovel-guess")
(:file "cffi-output-args")
(:file "ffi-definers")
(:file "ffi-interface")
(:file "ffi-conditions")
(:file "ffi-callbacks")
(:file "api"))
:in-order-to ((test-op (test-op #:burgled-batteries-tests))))