-
Notifications
You must be signed in to change notification settings - Fork 20
/
barney.yaml
41 lines (35 loc) · 1.13 KB
/
barney.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
images:
# Deprecated ref
minimal-source:
no-create-mountpoints: true
units:
- build: |
mkdir -p /dest/usr/lib/python3.11/site-packages/pybsn/
cp pybsn/__init__.py /dest/usr/lib/python3.11/site-packages/pybsn/
package:
no-create-mountpoints: true
units:
- build: |
mkdir -p /dest/pybsn
cp pybsn/__init__.py /dest/pybsn/
test/package:
units:
- sources: []
mappings:
/src/package: .%package
build: |
ls /src/package/pybsn/__init__.py
# Deprecated ref
pybsn-install-floor:
units:
- build: |
mkdir -p /dest/pybsn/
cp pybsn/__init__.py /dest/pybsn/
echo '#!/bin/sh
SRC_DIR=$(dirname "$0")
DEST_PYTHON_SITE_PKGS=`python3 -c "import site; print(site.getsitepackages()[0])"`
DEST_PYTHON_SITE_PKGS=/dest${DEST_PYTHON_SITE_PKGS}
mkdir -p ${DEST_PYTHON_SITE_PKGS}/pybsn/
cp ${SRC_DIR}/__init__.py ${DEST_PYTHON_SITE_PKGS}/pybsn/
' > /dest/pybsn/install_pybsn
chmod 777 /dest/pybsn/install_pybsn