summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon Olson <tachoknight@gmail.com>2018-07-10 13:58:17 -0500
committerRon Olson <tachoknight@gmail.com>2018-07-10 13:58:17 -0500
commit1e7700a63562fd07719d639a7543e2ddad108f47 (patch)
tree74d27f802bced5277a3e0e3a8a494fce7fc40765
parent779afdd97d714f29ef7ece5be610a581d9087c7c (diff)
downloadswift-lang-1e7700a63562fd07719d639a7543e2ddad108f47.tar.gz
swift-lang-1e7700a63562fd07719d639a7543e2ddad108f47.tar.xz
swift-lang-1e7700a63562fd07719d639a7543e2ddad108f47.zip
Added sed command to replace ambiguous python command with python2
-rw-r--r--swift-lang.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/swift-lang.spec b/swift-lang.spec
index 3ca4eef..f352dff 100644
--- a/swift-lang.spec
+++ b/swift-lang.spec
@@ -113,7 +113,7 @@ mv swift-xcode-playground-support-swift-%{swifttag} swift-xcode-playground-suppo
%build
export VERBOSE=1
export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0
-alias python=python2
+find ./ -type f -exec sed -i 's@#! */usr/bin/env python@python2@g' {} \;
swift/utils/build-script --preset=buildbot_linux,no_test install_destdir=%{_builddir} installable_package=%{_builddir}/swift-%{version}-fedora.tar.gz