blob: 24669d2a46491623a27e6d310f49e4a93cde8386 (
plain)
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
|
#!/bin/sh
[ "$1" = python3-installer ] || exit 0
python3 - << 'EOF'
from installer import install
from installer.sources import WheelFile
from installer.destinations import SchemeDictionaryDestination
import tempfile
import os
# Verify the API is importable and overwrite_existing defaults to True
dest = SchemeDictionaryDestination(
scheme_dict={
"purelib": "/tmp",
"platlib": "/tmp",
"headers": "/tmp",
"scripts": "/tmp",
"data": "/tmp",
},
interpreter="/usr/bin/python3",
script_kind="posix",
)
assert dest.overwrite_existing is True
EOF
|