Use $PWD consistently

This commit is contained in:
Miro Hrončok 2019-12-16 18:22:02 +01:00
parent 37d67a0a72
commit 38f1540e90

View File

@ -88,14 +88,14 @@ export FLIT_NO_NETWORK=1
# first, build flit_core with self
# TODO do it in a less hacky way, this is reconstructed from pyoroject.toml
cd flit_core
PYTHONPATH=$(pwd) %{python3} -c 'from flit_core.build_thyself import build_wheel; build_wheel(".")'
PYTHONPATH=$PWD %{python3} -c 'from flit_core.build_thyself import build_wheel; build_wheel(".")'
# %%py3_install_wheel unfortunately hardcodes installing from dist/
mkdir ../dist
mv flit_core-%{version}-py2.py3-none-any.whl ../dist
cd -
PYTHONPATH=$(pwd):$(pwd)/flit_core %{python3} -m flit build --format wheel
PYTHONPATH=$PWD:$PWD/flit_core %{python3} -m flit build --format wheel
%install