author | John Beck <John.Beck@Oracle.COM> |
Fri, 13 Jun 2014 12:36:52 -0700 | |
changeset 1948 | 2d1537e7942d |
parent 1907 | 446472de62e9 |
child 3998 | 5bd484384122 |
permissions | -rw-r--r-- |
1846
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
1 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
3 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
7 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
12 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
18 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
20 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
21 |
|
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
22 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
24 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
25 |
|
1907
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1846
diff
changeset
|
26 |
# Python 3.4 is 64-bit only, so no need for 32-bit shared object. |
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1846
diff
changeset
|
27 |
<transform file path=usr/lib/python3.4/vendor-packages/_cffi_backend.so -> drop> |
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1846
diff
changeset
|
28 |
# |
1846
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
29 |
set name=pkg.fmri \ |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
30 |
value=pkg:/library/python/cffi-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
31 |
set name=pkg.summary \ |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
32 |
value="Foreign function interface for Python calling C code" |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
33 |
set name=pkg.description \ |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
34 |
value="CFFI provides a convenient and reliable way of calling C code from Python. It does not require learning a new language or an extensive API, and tries to minimize the amount of C code you have to write. It works at both an ABI level, allowing you to reference symbols in libraries as well as at an API level, allowing you to embed C code in your Python program." |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
35 |
set name=com.oracle.info.description value="the cffi Python module" |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1907
diff
changeset
|
36 |
set name=com.oracle.info.tpno value=$(TPNO) |
1907
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1846
diff
changeset
|
37 |
set name=info.classification value=org.opensolaris.category.2008:Development/C \ |
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1846
diff
changeset
|
38 |
value=org.opensolaris.category.2008:Development/Python |
1846
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
39 |
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
40 |
set name=info.upstream [email protected] |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
41 |
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
42 |
set name=org.opensolaris.arc-caseid value=PSARC/2014/110 |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
43 |
set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
44 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
45 |
file path=usr/lib/python$(PYVER)/vendor-packages/64/_cffi_backend.so |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
46 |
file path=usr/lib/python$(PYVER)/vendor-packages/_cffi_backend.so |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
47 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/PKG-INFO |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
48 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/SOURCES.txt |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
49 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/dependency_links.txt |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
50 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/not-zip-safe |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
51 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/requires.txt |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
52 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi-$(COMPONENT_VERSION)-py$(PYVER).egg-info/top_level.txt |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
53 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/__init__.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
54 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/api.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
55 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/backend_ctypes.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
56 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/commontypes.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
57 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/cparser.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
58 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/ffiplatform.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
59 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/gc_weakref.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
60 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/lock.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
61 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/model.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
62 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/vengine_cpy.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
63 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/vengine_gen.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
64 |
file path=usr/lib/python$(PYVER)/vendor-packages/cffi/verifier.py |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
65 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
66 |
license LICENSE license=MIT |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
67 |
# |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
68 |
# force a dependency on the Python runtime |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
69 |
depend type=require fmri=__TBD pkg.debug.depend.file=python$(PYVER) \ |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
70 |
pkg.debug.depend.path=usr/bin |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
71 |
|
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
72 |
# force a dependency on the cffi package |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
73 |
depend type=require \ |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
74 |
fmri=library/python/cffi@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
75 |
|
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
76 |
# force a dependency on pycparser; pkgdepend work is needed to flush this |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
77 |
# out. |
df40919e04fa
PSARC/2014/110 CFFI: foreign function interface for Python calling C code
Danek Duvall <danek.duvall@oracle.com>
parents:
diff
changeset
|
78 |
depend type=require fmri=library/python/pycparser-$(PYV) |