Override path to python during installation (setuptools)

Y

Yegor Yefremov

I'm trying to add lava-test package to Buildroot. After "cross-compilation" I get following path in the /usr/bin/lava:

#!/home/user/MyProjects/versioned/buildroot/output/host/usr/bin/python

instead of #!/usr/bin/python

I use following command to install lava_test package:

+define LAVA_TEST_INSTALL_TARGET_CMDS
+ (cd $(@D); PYTHONPATH="$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages"\
+ $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
+endef

How can I override this auto-generated path?

The whole patch can be seen here: http://patchwork.ozlabs.org/patch/155498/

Regards,
Yegor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top