1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #9758 from smlng/pr/dist/pythonlibs

make: introduce common Python lib path
This commit is contained in:
Alexandre Abadie 2018-08-10 14:50:20 +02:00 committed by GitHub
commit f617a29156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,9 @@ BUILDRELPATH ?= $(CURDIR:$(RIOTPROJECT)/%=%)/
# get host operating system
OS := $(shell uname)
# set python path, e.g. for tests
PYTHONPATH := $(RIOTBASE)/dist/pythonlibs/:$(PYTHONPATH)
# Include Docker settings near the top because we need to build the environment
# command line before some of the variable origins are overwritten below when
# using abspath, strip etc.

2
dist/pythonlibs/README.md vendored Normal file
View File

@ -0,0 +1,2 @@
This directory is exported through PYTHONPATH environment variable in the build system.
Put any RIOT specific Python packages here.

View File

@ -31,6 +31,8 @@ export BINDIR # This is the folder where the application should b
export APPDIR # The base folder containing the application
export PKGDIRBASE # The base folder for building packages
export PYTHONPATH # Python default search path for module filesi, with RIOT specific packages
export FEATURES_REQUIRED # List of required features by the application
export FEATURES_PROVIDED # List of provided features by the board
export FEATURES_OPTIONAL # List of nice to have features