1414# You should have received a copy of the GNU Lesser General Public
1515# License along with this library; if not, write to the Free Software
1616# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17- LIBSSH2_DIR =" /opt/homebrew/opt/libssh2 /lib"
18- LIBSSH2_INCLUDE_DIR =" /opt/homebrew/opt/libssh2 /include"
19- export LDFLAGS=" -L${LIBSSH2_DIR } "
20- export CPPFLAGS=" -I${LIBSSH2_INCLUDE_DIR } "
17+ LIBSSH_DIR =" /opt/homebrew/opt/libssh /lib"
18+ LIBSSH_INCLUDE_DIR =" /opt/homebrew/opt/libssh /include"
19+ export LDFLAGS=" -L${LIBSSH_DIR } "
20+ export CPPFLAGS=" -I${LIBSSH_INCLUDE_DIR } "
2121
2222pip3 install -U virtualenv
2323python3 -m virtualenv -p " $( which python3) " venv
@@ -31,14 +31,14 @@ pip3 install -U setuptools pip
3131pip3 install -U delocate wheel
3232SYSTEM_LIBSSH=1 python3 setup.py bdist_wheel
3333
34- ls -lhtr ${LIBSSH2_DIR }
34+ ls -lhtr ${LIBSSH_DIR }
3535
3636delocate-listdeps dist/* .whl
3737delocate-wheel -v -w wheels dist/* .whl
3838delocate-listdeps wheels/* .whl
3939
4040ls -l wheels/* .whl
41- rm -f ${LIBSSH2_DIR} /libssh2 *
41+ rm -f ${LIBSSH_DIR} /libssh *
4242pip3 install -v wheels/* .whl
4343pwd ; mkdir -p temp; cd temp; pwd
4444python3 -c " from ssh.session import Session; Session()" && echo " Import successful"
0 commit comments