summaryrefslogtreecommitdiffstats
path: root/meta/classes/setuptools3-base.bbclass
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-01-11 11:01:11 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-12 21:09:01 +0000
commit458f37948928da5ca752f8f8beff4e95e919d06f (patch)
treebfb61a723d385333d85f6967320eda85913b259f /meta/classes/setuptools3-base.bbclass
parent5e36659ee314fdde2a357fa40a2109a9ebc7530d (diff)
downloadpoky-458f37948928da5ca752f8f8beff4e95e919d06f.tar.gz
setuptools3: refactor for no distutils bbclasses
Add setuptools3-base.bbclass as a re-usable starting point similar to what used to be distutils-common-base.bbclass and disutils3-base.bbclass. We no longer need to support python2, so no need for a setuptools-common-base.bbclass. Refactor setuptools3.bbclass to use setuptools3-base.bbclass instead of the distulis*.bbclasses. (From OE-Core rev: ca73393a36c4144662ea8570f904154188e9815a) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/setuptools3-base.bbclass')
-rw-r--r--meta/classes/setuptools3-base.bbclass31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/classes/setuptools3-base.bbclass b/meta/classes/setuptools3-base.bbclass
new file mode 100644
index 0000000000..5098ae9d64
--- /dev/null
+++ b/meta/classes/setuptools3-base.bbclass
@@ -0,0 +1,31 @@
1DEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
2DEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
3RDEPENDS:${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
4
5export STAGING_INCDIR
6export STAGING_LIBDIR
7
8# LDSHARED is the ld *command* used to create shared library
9export LDSHARED = "${CCLD} -shared"
10# LDXXSHARED is the ld *command* used to create shared library of C++
11# objects
12export LDCXXSHARED = "${CXX} -shared"
13# CCSHARED are the C *flags* used to create objects to go into a shared
14# library (module)
15export CCSHARED = "-fPIC -DPIC"
16# LINKFORSHARED are the flags passed to the $(CC) command that links
17# the python executable
18export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
19
20FILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
21
22FILES:${PN}-staticdev += "\
23 ${PYTHON_SITEPACKAGES_DIR}/*.a \
24"
25FILES:${PN}-dev += "\
26 ${datadir}/pkgconfig \
27 ${libdir}/pkgconfig \
28 ${PYTHON_SITEPACKAGES_DIR}/*.la \
29"
30inherit python3native python3targetconfig
31