2023-03-18 16:12:16 +03:00
|
|
|
import site
|
|
|
|
import sys
|
|
|
|
|
2023-06-16 22:51:31 +03:00
|
|
|
# tea considers /usr/local the "global install" location
|
2023-03-20 16:10:55 +03:00
|
|
|
# setting `sys.prefix` is kinda nuts but brew does the same
|
2023-06-16 22:51:31 +03:00
|
|
|
# so we're assuming they vetted all options
|
2023-03-20 16:10:55 +03:00
|
|
|
# sys.prefix = "/usr/local"
|
|
|
|
# ^^ undid this because it broke `python -m venv` installing pip for some reason
|
2023-03-18 16:12:16 +03:00
|
|
|
|
|
|
|
# enable automatic user installs if pip makes the decision
|
2023-06-16 22:51:31 +03:00
|
|
|
# that this is good idea. eg. if /usr/local isn't writable
|
2023-03-18 16:12:16 +03:00
|
|
|
# this is what it will do
|
|
|
|
site.ENABLE_USER_SITE = True
|