<div dir="ltr">Dear Thomas,<div><br></div><div>Thank you very much for your guidance. I have solved the issue while solving for the answer and to complete my question , I have posted the solution here. My problem was I was using absolute path within setup.py which was causing the problem. Switched it to relative path and it worked fine.</div><div>Thanks again for taking your valuable time in answering my question.</div><div><br></div><div>Regards,</div><div>Pragash</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 18, 2020 at 12:41 PM Thomas De Schampheleire <<a href="mailto:patrickdepinguin@gmail.com">patrickdepinguin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Pragash,<div dir="auto"><br></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 18, 2020, 15:54 Pragash Jeyaratnam <<a href="mailto:pragash.jeyaratnam@gmail.com" target="_blank">pragash.jeyaratnam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Adding to my previous email. The problem is due to python setup.py issue within custom modules. For example If we assume, </div><div>If a setup.py which has configuration </div><div><br></div><div>setup(name='your-module',<br>      .....<br>      data_files=[<br>        ('/usr/share/your_module/', glob.glob('data/*')),<br>      ],<br>     )<br></div><div><br></div><div>The above failure will occur ( Absolute path reference) . As per to the setup.py manual <a href="https://docs.python.org/3/distutils/setupscript.html" rel="noreferrer" target="_blank">https://docs.python.org/3/distutils/setupscript.html</a></div><div><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px;text-align:justify">"</span><span style="font-family:"Lucida Grande",Arial,sans-serif;text-align:justify">The </span><em style="font-family:"Lucida Grande",Arial,sans-serif;text-align:justify">directory</em><span style="font-family:"Lucida Grande",Arial,sans-serif;text-align:justify"> should be a relative path. It is interpreted relative to the installation prefix</span><span style="font-family:"Lucida Grande",Arial,sans-serif;font-size:16px;text-align:justify">"</span><br></div><div><br></div><div>So in-order to satisfy the above the configuration should be changed to<br></div><div>  setup(name='your_module',<br>      .....<br>      data_files=[<br>        ('share/your_module/', glob.glob('data/*')),<br>      ],<br>     )  <br></div><div><br></div><div>Which will be created as per to the installation_prefix/share/your_module.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">In order to get efficient help, you should show the .mk file you used for this custom package.</div><div dir="auto"><br></div><div dir="auto">Buildroot has a python-package infrastructure, did you use it?</div><div dir="auto"><br></div><div dir="auto">Did you compare with other python packages present in Buildroot?</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Thomas</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div></div>
</blockquote></div>