Commit 79a3de6d authored by Hilal Ozdemir's avatar Hilal Ozdemir

add tar-split to data_files in beiran_package_docker's setup.py

parent 49076e05
......@@ -33,6 +33,14 @@ fi
apt-get install libyajl2
apt-get install libyajl-dev
# make binary of 'tar-split' with Docker
tarsplit_dir=${DIR}/plugins/beiran_package_docker/
if [ ! -e ${tarsplit_dir}/tar-split ]; then
docker build -t tarsplit -f $tarsplit_dir/DockerfileTarsplit $tarsplit_dir
docker create --name tarsplit tarsplit && docker cp tarsplit:/tar-split ${tarsplit_dir}/tar-split && docker rm tarsplit && docker rmi tarsplit
fi
# install beiran
${PYTHON_BINARY} setup.py install
......@@ -66,14 +74,6 @@ export BEIRAN_CONFIG_DIR=${DIR}
export BEIRAN_DISCOVERY_METHOD=zeroconf
export BEIRAN_PLUGINS=beiran.plugins.discovery.zeroconf,package.docker
# make binary of 'tar-split' with Docker
tarsplit_dir=${DIR}/plugins/beiran_package_docker/
if [ ! -e ${tarsplit_dir}/tar-split ]; then
docker build -t tarsplit -f $tarsplit_dir/DockerfileTarsplit $tarsplit_dir
docker create --name tarsplit tarsplit && docker cp tarsplit:/tar-split ${tarsplit_dir}/tar-split && docker rm tarsplit && docker rmi tarsplit
fi
function ps1_context {
# For any of these bits of context that exist, display them and append
# a space.
......
......@@ -83,4 +83,7 @@ setup(
python_requires='~=3.6',
packages=find_beiran_packages(),
data_files=[
('beiran_package_docker', ['beiran_package_docker/tar-split'])
],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment