Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mach bootstrap tries to install packages globally? #25949

Open
asajeffrey opened this issue Mar 11, 2020 · 5 comments
Open

Mach bootstrap tries to install packages globally? #25949

asajeffrey opened this issue Mar 11, 2020 · 5 comments
Labels

Comments

@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Mar 11, 2020

Running mach build -r on a Mac, using python3.7 fails, due to trying to install packages into /usr/local. I thin what's going on is that

_process_exec([python, "-m", "pip", "install", "-I", "-U", "pip"])
for req_rel_path in requirements_paths:
req_path = os.path.join(topdir, req_rel_path)
marker_file = req_rel_path.replace(os.path.sep, '-')
marker_path = os.path.join(virtualenv_path, marker_file)
try:
if os.path.getmtime(req_path) + 10 < os.path.getmtime(marker_path):
continue
except OSError:
pass
_process_exec([python, "-m", "pip", "install", "-I", "-r", req_path])
is running in the system python rather than the virtualenv python?

@asajeffrey asajeffrey added the A-build label Mar 11, 2020
@asajeffrey
Copy link
Member Author

@asajeffrey asajeffrey commented Mar 11, 2020

Can't cut and paste out of vnc, but here's a screenshot.
Screenshot of administrator’s Mac mini at 2020-03-11 16:57:25

@nox
Copy link
Member

@nox nox commented Mar 12, 2020

I don't know if it's installing things in the wrong location, but it's definitely weird that you get permission denied errors for things in Homebrew's /usr/local, which is supposed to be owned by you. Did you maybe run sudo brew install … at some point?

@jdm
Copy link
Member

@jdm jdm commented Mar 12, 2020

I suspect the problem is that alan was using the administrator account, and homebrew was set up to run under the worker account.

@asajeffrey
Copy link
Member Author

@asajeffrey asajeffrey commented Mar 12, 2020

Which in this case is a good thing, I really want intending to install any software globally by running mach build.

@nox
Copy link
Member

@nox nox commented Jun 25, 2020

@asajeffrey Homebrew is supposed to be installed with the account you normally use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.