mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1452179: [mozharness] Don't special case the path to mozinstall on windows; r=whimboo
New versions of pip don't install entrypoint scripts with a `-script.py` on windows. Instead, just call the bare script name everywhere. On unix-like systems, this uses the shebang; on Windows, this executes the `.exe` wrapper. Differential Revision: https://phabricator.services.mozilla.com/D967 --HG-- extra : rebase_source : 16e7bcd9efc2376f9a948f948bc81fd6596486d0 extra : source : 891a59eaf8e5e8267154d1d3872322705efd8e1a
This commit is contained in:
parent
2e1e0ecda7
commit
482078d154
@ -11,7 +11,6 @@ config = {
|
||||
"virtualenv_path": 'venv',
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'mozinstall': ['build/venv/scripts/python', 'build/venv/scripts/mozinstall-script.py'],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg')
|
||||
},
|
||||
"find_links": [
|
||||
|
@ -8,7 +8,6 @@ config = {
|
||||
"virtualenv_path": 'venv',
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'mozinstall': ['build/venv/scripts/python', 'build/venv/scripts/mozinstall-script.py'],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg')
|
||||
},
|
||||
|
||||
|
@ -10,8 +10,6 @@ config = {
|
||||
"exes": {
|
||||
'python': 'c:/mozilla-build/python27/python',
|
||||
'hg': 'c:/mozilla-build/hg/hg',
|
||||
'mozinstall': ['%s/build/venv/scripts/python' % os.getcwd(),
|
||||
'%s/build/venv/scripts/mozinstall-script.py' % os.getcwd()],
|
||||
},
|
||||
|
||||
"find_links": [
|
||||
|
@ -10,7 +10,6 @@ config = {
|
||||
"virtualenv_path": 'venv',
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'mozinstall': ['build/venv/scripts/python', 'build/venv/scripts/mozinstall-script.py'],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg')
|
||||
},
|
||||
|
||||
|
@ -19,8 +19,6 @@ config = {
|
||||
"virtualenv_modules": ['pywin32', 'talos', 'mozinstall'],
|
||||
"exes": {
|
||||
'python': PYTHON,
|
||||
'mozinstall': ['%s/scripts/python' % VENV_PATH,
|
||||
'%s/scripts/mozinstall-script.py' % VENV_PATH],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg'),
|
||||
'tooltool.py': [PYTHON, os.path.join(os.environ['MOZILLABUILD'], 'tooltool.py')],
|
||||
},
|
||||
|
@ -18,8 +18,6 @@ config = {
|
||||
"virtualenv_modules": ['pypiwin32', 'talos', 'mozinstall'],
|
||||
"exes": {
|
||||
'python': PYTHON,
|
||||
'mozinstall': ['%s/scripts/python' % VENV_PATH,
|
||||
'%s/scripts/mozinstall-script.py' % VENV_PATH],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg'),
|
||||
},
|
||||
"title": socket.gethostname().split('.')[0],
|
||||
|
@ -19,8 +19,6 @@ config = {
|
||||
"virtualenv_modules": ['pywin32', 'talos', 'mozinstall'],
|
||||
"exes": {
|
||||
'python': PYTHON,
|
||||
'mozinstall': ['%s/scripts/python' % VENV_PATH,
|
||||
'%s/scripts/mozinstall-script.py' % VENV_PATH],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg'),
|
||||
},
|
||||
"title": socket.gethostname().split('.')[0],
|
||||
|
@ -24,7 +24,6 @@ TASKBAR_AUTOHIDE_REG_PATH = {
|
||||
config = {
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'mozinstall': ['build/venv/scripts/python', 'build/venv/scripts/mozinstall-script.py'],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg')
|
||||
},
|
||||
###
|
||||
|
@ -15,8 +15,6 @@ config = {
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'hg': 'c:/mozilla-build/hg/hg',
|
||||
'mozinstall': ['%s/build/venv/scripts/python' % os.getcwd(),
|
||||
'%s/build/venv/scripts/mozinstall-script.py' % os.getcwd()],
|
||||
},
|
||||
###
|
||||
"installer_path": INSTALLER_PATH,
|
||||
|
@ -23,8 +23,6 @@ config = {
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'hg': 'c:/mozilla-build/hg/hg',
|
||||
'mozinstall': ['%s/build/venv/scripts/python' % os.getcwd(),
|
||||
'%s/build/venv/scripts/mozinstall-script.py' % os.getcwd()],
|
||||
},
|
||||
|
||||
"find_links": [
|
||||
|
@ -22,7 +22,6 @@ config = {
|
||||
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'mozinstall': ['build/venv/scripts/python', 'build/venv/scripts/mozinstall-script.py'],
|
||||
'hg': os.path.join(os.environ['PROGRAMFILES'], 'Mercurial', 'hg')
|
||||
},
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
config = {
|
||||
@ -21,8 +20,6 @@ config = {
|
||||
"exes": {
|
||||
'python': sys.executable,
|
||||
'hg': 'c:/mozilla-build/hg/hg',
|
||||
'mozinstall': ['%s/build/venv/scripts/python' % os.getcwd(),
|
||||
'%s/build/venv/scripts/mozinstall-script.py' % os.getcwd()],
|
||||
},
|
||||
|
||||
"default_actions": [
|
||||
|
@ -590,7 +590,7 @@ Did you run with --create-virtualenv? Is mozinstall in virtualenv_modules?""")
|
||||
def install_app(self, app=None, target_dir=None, installer_path=None):
|
||||
""" Dependent on mozinstall """
|
||||
# install the application
|
||||
cmd = self.query_exe("mozinstall", default=self.query_python_path("mozinstall"), return_type="list")
|
||||
cmd = [self.query_python_path("mozinstall")]
|
||||
if app:
|
||||
cmd.extend(['--app', app])
|
||||
# Remove the below when we no longer need to support mozinstall 0.3
|
||||
|
Loading…
Reference in New Issue
Block a user