Skip to content

Commit

Permalink
updated installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonghwan Hwang authored and Jonghwan Hwang committed Sep 18, 2020
1 parent b4f9699 commit 21b148c
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 10 deletions.
27 changes: 23 additions & 4 deletions animBuddy/Install/install.mel
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,39 @@ for fldr in os.listdir(ppath):\n\
if fldr.startswith('animBuddy') and fldr.endswith('dist-info'):\n\
shutil.rmtree(os.path.join(ppath, fldr))\n\
\n\
cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, MAYA_SCRIPTS_PATH,\n\
ANIMBUDDY_API_RELEASE_PATH).split(' ')\n\
#cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, MAYA_SCRIPTS_PATH,\n\
# ANIMBUDDY_API_RELEASE_PATH).split(' ') \n\
cmd = []\n\
cmd.append(PIP_PATH)\n\
cmd.append("install")\n\
cmd.append("--force-reinstall")\n\
cmd.append("--target={0}".format(MAYA_SCRIPTS_PATH))\n\
cmd.append(ANIMBUDDY_API_RELEASE_PATH)\n\
\n\
print('Calling shell command: {0}'.format(cmd))\n\
print(subprocess.check_output(cmd))\n\
\n\
# Install Requests\n\
cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,\n\
'requests').split(' ')\n\
#cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,\n\
# 'requests').split(' ')\n\
cmd = []\n\
cmd.append(PIP_PATH)\n\
cmd.append("install")\n\
cmd.append("--force-reinstall")\n\
cmd.append("--target={0}".format(REQUEST_INSTALL_PATH))\n\
cmd.append("requests")\n\
print('Calling shell command: {0}'.format(cmd))\n\
print(subprocess.check_output(cmd))\n\
\n\
# Install Dropbox\n\
cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,\n\
'dropbox').split(' ')\n\
cmd = []\n\
cmd.append(PIP_PATH)\n\
cmd.append("install")\n\
cmd.append("--force-reinstall")\n\
cmd.append("--target={0}".format(REQUEST_INSTALL_PATH))\n\
cmd.append("dropbox")\n\
print('Calling shell command: {0}'.format(cmd))\n\
print(subprocess.check_output(cmd))\n\
\n\
Expand Down
27 changes: 23 additions & 4 deletions animBuddy/Install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,39 @@ def run():
if fldr.startswith('animBuddy') and fldr.endswith('dist-info'):
shutil.rmtree(os.path.join(ppath, fldr))

cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, MAYA_SCRIPTS_PATH,
ANIMBUDDY_API_RELEASE_PATH).split(' ')
#cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, MAYA_SCRIPTS_PATH,
# ANIMBUDDY_API_RELEASE_PATH).split(' ')
cmd = []
cmd.append(PIP_PATH)
cmd.append("install")
cmd.append("--force-reinstall")
cmd.append("--target={0}".format(MAYA_SCRIPTS_PATH))
cmd.append(ANIMBUDDY_API_RELEASE_PATH)

print('Calling shell command: {0}'.format(cmd))
print(subprocess.check_output(cmd))

# Install Requests
cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,
'requests').split(' ')
#cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,
# 'requests').split(' ')
cmd = []
cmd.append(PIP_PATH)
cmd.append("install")
cmd.append("--force-reinstall")
cmd.append("--target={0}".format(REQUEST_INSTALL_PATH))
cmd.append("requests")
print('Calling shell command: {0}'.format(cmd))
print(subprocess.check_output(cmd))

# Install Dropbox
cmd = '{0} install --force-reinstall --target={1} {2}'.format(PIP_PATH, REQUEST_INSTALL_PATH,
'dropbox').split(' ')
cmd = []
cmd.append(PIP_PATH)
cmd.append("install")
cmd.append("--force-reinstall")
cmd.append("--target={0}".format(REQUEST_INSTALL_PATH))
cmd.append("dropbox")
print('Calling shell command: {0}'.format(cmd))
print(subprocess.check_output(cmd))

Expand Down
2 changes: 1 addition & 1 deletion animBuddy/Install/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
logger = logging.getLogger("AnimBuddy")

#This is Local Version
VERSION = "1.0.3"
VERSION = "1.0.4"

def getLatestSetupPyFileFromRepo():
"""Parses latest setup.py's version number"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name = 'animBuddy',
version = '1.0.3',
version = '1.0.4',
url = 'https://github.com/darkuress/animBuddy.git',
author = 'Huile De Olive',
author_email = "huiledolivemaster@gmail.com",
Expand Down

0 comments on commit 21b148c

Please sign in to comment.