Skip to contentSkip to conversation

python-native: export some environment variables

PATCH In review Chong Lu 2 participants 4 messages Feb 22, 2014 – Mar 24, 2014

lore
Share & tools
lore

Chong Lu

author
#0 lore raw

PATCH 1/1 python-native: export some environment variables

Need to export these environment variables for python-config to work.

---
 meta/classes/pythonnative.bbclass |    4 ++++
 1 file changed, 4 insertions(+)
meta/classes/pythonnative.bbclass +4 -0
index fdd22bb..58a5b5c 100644
@@ -4,3 +4,7 @@ inherit python-dir
 PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
 EXTRANATIVEPATH += "${PYTHON_PN}-native"
 DEPENDS += " ${PYTHON_PN}-native "
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Chong Lu

Need to export these environment variables for python-config to work.

Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?

Sau!

Quoted 18 lines
---
  meta/classes/pythonnative.bbclass |    4 ++++
  1 file changed, 4 insertions(+)
meta/classes/pythonnative.bbclass +4 -0
index fdd22bb..58a5b5c 100644
@@ -4,3 +4,7 @@ inherit python-dir
  PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
  EXTRANATIVEPATH += "${PYTHON_PN}-native"
  DEPENDS += " ${PYTHON_PN}-native "
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS
author
#2 lore raw
Quoted 7 lines · Saul Wold
Quoted 2 lines · Chong Lu

Need to export these environment variables for python-config to work.

Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?

Sau!

checking for python script directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>

    PREFIX = os.path.normpath(sys.prefix).replace( 

os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
${libdir}/python2.7/site-packages
checking for python extension module directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>

    PREFIX = os.path.normpath(sys.prefix).replace( 

os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object

Above error comes from some packages' do_configure log. This error doesn't block building.
Some packages export above env variables in bb file, but someone not. So I think these env variables should be exported in bbclass file.

Best Regards
Chong

Quoted 20 lines
Quoted 18 lines
---
  meta/classes/pythonnative.bbclass |    4 ++++
  1 file changed, 4 insertions(+)
meta/classes/pythonnative.bbclass +0 -0
index fdd22bb..58a5b5c 100644
@@ -4,3 +4,7 @@ inherit python-dir

PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
EXTRANATIVEPATH += "${PYTHON_PN}-native"
DEPENDS += " ${PYTHON_PN}-native "

meta/classes/pythonnative.bbclass +4 -0
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS
author
#3 lore raw

ping

Quoted 63 lines · Lu Chong
Quoted 7 lines · Saul Wold
Quoted 2 lines · Chong Lu

Need to export these environment variables for python-config to work.

Can you clariy further as to what's broken? Has this not been working in the past, or is this a new test of somekine that we are failing?

Sau!

checking for python script directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>

    PREFIX = os.path.normpath(sys.prefix).replace( 

os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
${libdir}/python2.7/site-packages
checking for python extension module directory... Traceback (most recent call last):
File "<string>", line 22, in <module>
File
"/yocto/build/qemux86-64/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>

    PREFIX = os.path.normpath(sys.prefix).replace( 

os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object

Above error comes from some packages' do_configure log. This error doesn't block building.
Some packages export above env variables in bb file, but someone not. So I think these env variables should be exported in bbclass file.

Best Regards
Chong

Quoted 5 lines
Quoted 5 lines
---
  meta/classes/pythonnative.bbclass |    4 ++++
  1 file changed, 4 insertions(+)
Quoted 15 lines

meta/classes/pythonnative.bbclass inherit python-dir · line 10

Quoted 13 lines
meta/classes/pythonnative.bbclass +0 -0
index fdd22bb..58a5b5c 100644
@@ -4,3 +4,7 @@ inherit python-dir

PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
EXTRANATIVEPATH += "${PYTHON_PN}-native"
DEPENDS += " ${PYTHON_PN}-native "

meta/classes/pythonnative.bbclass +4 -0
+export STAGING_INCDIR
+export STAGING_LIBDIR
+export BUILD_SYS
+export HOST_SYS

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core