This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,11 @@ brew upgrade gcc
3939brew info gcc
4040
4141# Get the python version numbers only by splitting the string
42- PYBIN=" /usr/local/opt/$PYTHON_VERSION /bin"
42+ PYBIN=" /usr/local/opt/$PYTHON_VERSION /libexec/bin"
43+ INTERPRETER=" $PYBIN /python"
4344ls -ltr /usr/local/opt/python*
4445ls -ltr $PYBIN
46+ ls -ltr $INTERPRETER
4547export PATH=$PYBIN :/usr/local/bin:$PATH
4648echo " Python bin path: $PYBIN "
4749
7779# Install `delocate` -- OSX equivalent of `auditwheel`
7880# see https://pypi.org/project/delocate/ for more details
7981cd $CURRDIR
80- " ${PYBIN} /pip3 " install delocate==0.10.0
82+ $INTERPRETER -m pip install delocate==0.10.0
8183
8284ls -ltrh /usr/local
8385ls -ltrh /usr/local/opt
@@ -107,7 +109,7 @@ cd $CURRDIR
107109cat setup.py
108110# flags must be passed, to avoid the issue: `Unsupported compiler -- pybind11 requires C++11 support!`
109111# see https://github.com/quantumlib/qsim/issues/242 for more details
110- CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS=-L/usr/local/opt/libomp/lib " ${PYBIN} /python3 " setup.py bdist_wheel
112+ CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++ LDFLAGS=-L/usr/local/opt/libomp/lib $INTERPRETER setup.py bdist_wheel
111113cp ./dist/* .whl $CURRDIR /wheelhouse_unrepaired
112114
113115# Bundle external shared libraries into the wheels
You can’t perform that action at this time.
0 commit comments