2
2
# Apache License 2.0, Copyright 2019 Tebel.Automation Private Limited
3
3
# https://github.com/tebelorg/TagUI-Python/blob/master/LICENSE.txt
4
4
__author__ = 'Ken Soh <[email protected] >'
5
- __version__ = '1.17.2 '
5
+ __version__ = '1.18.0 '
6
6
7
7
import subprocess
8
8
import os
@@ -368,7 +368,9 @@ def setup():
368
368
if not os .path .isfile ('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' ):
369
369
370
370
# if openssl is missing, first attempt to install using homebrew
371
- os .system ('brew install openssl > /dev/null 2>&1' )
371
+ os .system ('brew uninstall openssl > /dev/null 2>&1' )
372
+ os .system ('brew uninstall openssl > /dev/null 2>&1' )
373
+ os .system ('brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb > /dev/null 2>&1' )
372
374
373
375
# if it is still missing, attempt again by first installing homebrew
374
376
if not os .path .isfile ('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' ):
@@ -377,16 +379,21 @@ def setup():
377
379
print ('[TAGUI][INFO] - you may be prompted for login password to continue' )
378
380
print ('' )
379
381
os .system ('echo | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' )
380
- os .system ('brew install openssl' )
382
+ os .system ('brew uninstall openssl > /dev/null 2>&1' )
383
+ os .system ('brew uninstall openssl > /dev/null 2>&1' )
384
+ os .system ('brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb' )
381
385
382
386
# if it is still missing, prompt user to install homebrew and openssl
383
387
if not os .path .isfile ('/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' ):
384
388
print ('[TAGUI][INFO] - OpenSSL was not able to be installed automatically' )
385
- print ('[TAGUI][INFO] - run below 2 commands in your terminal to install manually' )
389
+ print ('[TAGUI][INFO] - run below commands in your terminal to install manually' )
386
390
print ('[TAGUI][INFO] - after that, TagUI ready for use in your Python environment' )
387
391
print ('' )
388
392
print ('/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' )
389
- print ('brew install openssl' )
393
+ print ('brew uninstall openssl; brew uninstall openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb' )
394
+ print ('' )
395
+ print ('[TAGUI][INFO] - if there is an issue running brew command, check the solution below' )
396
+ print ('[TAGUI][INFO] - https://github.com/kelaberetiv/TagUI/issues/86#issuecomment-532466727' )
390
397
print ('' )
391
398
return False
392
399
0 commit comments