Skip to content

Commit 9e4ce1a

Browse files
committed
Build: Allow specifying install location
With that, we have enough options to be able to build a .hpkg file!
1 parent 464207b commit 9e4ce1a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Jamfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Parameters:
77
# python_version - version of python to use such. Default value: 3.10
8+
# install_location - place to put installed files. Defaults to site-packages
89
# py - alias of python_version
910
#
1011
# Documentation for jam can be found at /boot/system/documentation/packages/jam
@@ -64,9 +65,11 @@ rule Symlink
6465

6566
## Main build file
6667

67-
# Set python_version to default value if user did not specify value
68+
# Set user configurable variables to default value if user did not specify value
6869
py ?= 3.10 ;
6970
python_version ?= $(py) ;
71+
install_location ?=
72+
/boot/system/non-packaged/lib/python$(python_version)/site-packages ;
7073

7174
# Where to search for .cpp files
7275
SEARCH_SOURCE += bindings/interface bindings/app ;
@@ -138,5 +141,5 @@ MakeLocate __init__.py : $(LOCATE_TARGET) ; # Put it in the build directory
138141
File __init__.py : bindings/__init__.py ;
139142

140143
# As part of `jam install`, copy the following files:
141-
InstallLib /boot/system/non-packaged/lib/python$(python_version)/site-packages/Be
144+
InstallLib $(install_location)/Be
142145
: Be.so $(sourceFiles:S=.so) __init__.py ;

0 commit comments

Comments
 (0)