<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8446</bug_id>
          
          <creation_ts>2015-10-06 09:22:57 +0000</creation_ts>
          <short_desc>fix .pyc/.pyo buildpaths issue</short_desc>
          <delta_ts>2018-07-26 13:20:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.6 M3</target_milestone>
          <dependson>7058</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54985</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-10-06 09:22:57 +0000</bug_when>
    <thetext>The .pyc files usually contain build path like:

i586-poky-linux-gcc  -m32 -march=i586 --sysroot=/buildarea/lyang1/test_p/tmp/sysroots/qemux86
And:
_PYTHON_PROJECT_BASE=/buildarea/lyang1/test_p/tmp/work/i586-poky-linux/python/2.7.9-r1/build

They are safe, so ignore them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59461</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2016-02-25 02:34:45 +0000</bug_when>
    <thetext>We need to do the investigation to find a way to replace
build path with target path in .pyc/.pyo files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64627</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2016-07-29 02:14:16 +0000</bug_when>
    <thetext>The fix has been sent to oe-core mailing list, but no reply.

I should resend it in 2.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81186</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2018-07-26 13:20:41 +0000</bug_when>
    <thetext>Merged to oe-core

commit 21f0c5a50e00ac34975d79fd48f08730d8f19b15
Author: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
Date:   Thu Jul 19 22:59:04 2018 +0800

    distutils/setuptools, distutils3/setuptools3: improve reproducibility

    - Unify var-DISTUTILS_INSTALL_ARGS in distutils and setuptools

    - Supply &quot;--root&quot; directory to the &quot;install&quot; command, and use
      it as a prefix to strip off the purported filename encoded
      in bytecode files. (It strips build path prefix from .pyc files)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>