14
14
# You should have received a copy of the GNU Lesser General Public
15
15
# License along with this library; if not, write to the Free Software
16
16
# 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 } "
21
21
22
22
pip3 install -U virtualenv
23
23
python3 -m virtualenv -p " $( which python3) " venv
@@ -31,14 +31,14 @@ pip3 install -U setuptools pip
31
31
pip3 install -U delocate wheel
32
32
SYSTEM_LIBSSH=1 python3 setup.py bdist_wheel
33
33
34
- ls -lhtr ${LIBSSH2_DIR }
34
+ ls -lhtr ${LIBSSH_DIR }
35
35
36
36
delocate-listdeps dist/* .whl
37
37
delocate-wheel -v -w wheels dist/* .whl
38
38
delocate-listdeps wheels/* .whl
39
39
40
40
ls -l wheels/* .whl
41
- rm -f ${LIBSSH2_DIR} /libssh2 *
41
+ rm -f ${LIBSSH_DIR} /libssh *
42
42
pip3 install -v wheels/* .whl
43
43
pwd ; mkdir -p temp; cd temp; pwd
44
44
python3 -c " from ssh.session import Session; Session()" && echo " Import successful"
0 commit comments