[Buildroot] Inquiry : Adding a custom python package to buildroot
pragash.jeyaratnam at gmail.com
Wed Mar 18 16:48:03 UTC 2020
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
Thanks again for taking your valuable time in answering my question.
On Wed, Mar 18, 2020 at 12:41 PM Thomas De Schampheleire <
patrickdepinguin at gmail.com> wrote:
> Hi Pragash,
> On Wed, Mar 18, 2020, 15:54 Pragash Jeyaratnam <
> pragash.jeyaratnam at gmail.com> wrote:
>> Adding to my previous email. The problem is due to python setup.py issue
>> within custom modules. For example If we assume,
>> If a setup.py which has configuration
>> ('/usr/share/your_module/', glob.glob('data/*')),
>> The above failure will occur ( Absolute path reference) . As per to the
>> setup.py manual https://docs.python.org/3/distutils/setupscript.html
>> "The *directory* should be a relative path. It is interpreted relative
>> to the installation prefix"
>> So in-order to satisfy the above the configuration should be changed to
>> ('share/your_module/', glob.glob('data/*')),
>> Which will be created as per to the installation_prefix/share/your_module.
> In order to get efficient help, you should show the .mk file you used for
> this custom package.
> Buildroot has a python-package infrastructure, did you use it?
> Did you compare with other python packages present in Buildroot?
> Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the buildroot