214 Commits

Author SHA1 Message Date
Bo Anderson
f9481d4d35 python: Fix error in virtualenv_install_with_resources
Fixes #7115.
2020-03-04 14:13:41 +00:00
Mike McQuaid
f6631d6449
Merge pull request #7019 from iMichka/python2doc
brew: remove most traces of python@2
2020-03-04 11:21:07 +00:00
Mike McQuaid
b3a340cc6a
Merge pull request #7089 from dawidd6/npm-args-unsafe-perm
node: add --unsafe-perm to std_args
2020-03-02 13:19:59 +00:00
Michka Popoff
79a3d3568b python: add rewrite function for generic shebangs
From PEP 394
https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers

In cases where the script is expected to be executed outside virtual environments,
developers will need to be aware of the following discrepancies across platforms and installation methods:

Older Linux distributions will provide a python command that refers to Python 2, and will likely not provide a python2 command.
Some newer Linux distributions will provide a python command that refers to Python 3.
Some Linux distributions will not provide a python command at all by default, but will provide a python3 command by default.

When potentially targeting these environments, developers may either use a Python package installation tool that rewrites shebang lines
for the installed environment, provide instructions on updating shebang lines interactively,
or else use more specific shebang lines that are tailored to the target environment.
2020-02-28 20:08:43 +01:00
Dawid Dziurla
aac200a53d
node: detect root via Process.uid 2020-02-28 13:37:44 +01:00
Dawid Dziurla
79a1500f2b
node: add --unsafe-perm to std_args only if run as root 2020-02-28 13:00:43 +01:00
Dawid Dziurla
6874c79375
node: add --unsafe-perm to std_args 2020-02-28 12:47:03 +01:00
Michka Popoff
c46a30b575 brew: remove most traces of python@2 2020-02-17 22:38:24 +01:00
Michka Popoff
38feac473c virtualenv: support mojave and high sierra system Python
On High Sierra and Mojave, virtualenv 16.x does not build when used with
system Python
Fall back to an older virtualenv version, which is known to work.
2019-12-30 20:18:55 +01:00
Alexander Bayandin
c92a3d3f84 virtualenv_install_with_resources: add python@3.8 handling 2019-12-19 17:23:15 +00:00
Chongyu Zhu
22a7b4bc1e
python_virtualenv_constants: upgrade virtualenv to 16.7.4 2019-08-24 17:08:23 +08:00
Chongyu Zhu
97cbf43a3d
python_virtualenv_constants: upgrade virtualenv to 16.7.2 2019-07-27 04:49:46 +08:00
Chongyu Zhu
da20f63da1
python_virtualenv_constants: upgrade virtualenv to 16.7.1 2019-07-26 02:13:05 +08:00
Chongyu Zhu
ba9dde9a4e
python_virtualenv_constants: upgrade virtualenv to 16.6.2 2019-07-15 08:32:56 +08:00
Chongyu Zhu
08561335ce
python_virtualenv_constants: upgrade virtualenv to 16.6.1 2019-06-17 12:34:59 +08:00
Chongyu Zhu
0bb29e8253
python_virtualenv_constants: upgrade virtualenv to 16.6.0 2019-05-15 20:05:37 +08:00
Chongyu Zhu
e3615add8c
python_virtualenv_constants: upgrade virtualenv to 16.5.0 2019-04-24 19:12:00 +08:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files. 2019-04-20 13:27:36 +09:00
EricFromCanada
fa6404e0f5 grammar fixes 2019-04-13 21:29:32 -04:00
Jonathan Chang
46af0260f0 python: support pypy3 2019-03-11 20:14:03 +11:00
Chongyu Zhu
9dbd04ac09
python_virtualenv_constants: upgrade virtualenv to 16.4.3 2019-03-01 11:15:57 +08:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause. 2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier. 2019-02-21 12:55:49 +00:00
Chongyu Zhu
6cac67bcd0
python_virtualenv_constants: upgrade virtualenv to 16.4.0 2019-02-09 23:10:50 +08:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Chongyu Zhu
80d8d441a2
python_virtualenv_constants: upgrade virtualenv to 16.3.0 2019-01-26 14:26:35 +08:00
Chongyu Zhu
2181ea76c6
python_virtualenv_constants: upgrade virtualenv to 16.2.0 2019-01-01 18:21:23 +08:00
Shaun Jackman
e8b22690a0 Fix Language::Java::java_home_env for Linux
/usr/libexec/java_home is specific to macOS.
Language::Java::java_home_cmd is not implemented on Linux and raises
NotImplementedError.

Add private Language::Java::java_home_shell and use it instead of java_home_cmd.
Add public Language::Java::java_home for use by formulae.
2018-11-29 12:50:31 -08:00
Chongyu Zhu
77daf29c47
python_virtualenv_constants: upgrade virtualenv to 16.1.0 2018-11-01 00:47:47 +08:00
EricFromCanada
20167e5f1b Adjust comments to tidy API docs output. 2018-10-18 21:42:43 -04:00
Markus Reiter
c4d418e126 Use ActiveSupport’s #second. 2018-10-07 23:10:56 +02:00
Jonathan Chang
0fe273be5f language/python: support pypy 2018-09-24 16:24:30 -04:00
commitay
eb9f9f5e36 language/haskell: use v1 commands 2018-09-21 13:23:39 +10:00
Markus Reiter
e9b9ea49a1 Update to RuboCop 0.59.1. 2018-09-17 03:45:59 +02:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Markus Reiter
7762ce32aa Use more descriptive heredoc names. 2018-07-11 18:15:30 +02:00
commitay
e3ec061a3a language/python: python 3.7 2018-07-05 10:16:04 +10:00
commitay
db56b1add5 python_virtualenv_constants: update virtualenv to 16.0.0 2018-05-18 12:05:55 +10:00
Mike McQuaid
9fca172d03 Fix HOMEBREW_RUBY_WARNINGS="-w"
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
ilovezfs
7eaaaf6fa2 python_virtualenv_constants: update virtualenv to 15.2.0 2018-04-02 01:58:17 -07:00
ilovezfs
776fec7f6b virtualenv_install_with_resources: invoke python with versioned name.
The unversioned python executable no longer refers to python3.
2018-03-09 14:01:52 -08:00
ilovezfs
34bd99af8d language/python: expect @ in python@2 Cellar paths
The realpath of the python@2 Cellar contains "python@2" not "python2" so
check for "python@2" when doing Cellar->opt robustifications.
2018-03-08 08:10:48 -08:00
Mike McQuaid
bc3389bdae
Merge pull request #3863 from MikeMcQuaid/python3-changes
Adjust docs and more internal code for Python 3.
2018-03-03 18:17:04 +00:00
Mike McQuaid
70253f0009 Adjust docs and more internal code for Python 3.
Now we have `python` for Python 3 and `python@2` for Python 2 some more
adjustments need to be made.
2018-03-03 09:42:25 +00:00
Steven Peters
0d5ae6cf0b
language/python: version 3.6 in site_packages 2018-03-02 09:05:41 -08:00
ilovezfs
04cec369c7 language/python: handle python@* in each_python 2018-02-28 03:20:14 -08:00
ilovezfs
5496a04dd9 language/python: handle python@* in virtualenv_install_with_resources 2017-12-30 15:11:14 -08:00
Mike McQuaid
4b849dacd2
Merge pull request #3573 from DomT4/python_dead_code
python: remove package_available? logic
2017-12-13 08:50:05 +00:00
Dominyk Tiller
5a018f8650
python: remove package_available? logic
It was added in https://github.com/Homebrew/legacy-homebrew/pull/37345 for
a use case discussed in https://github.com/Homebrew/legacy-homebrew/pull/37340
that never seems to have actually emerged. I can find no reference of it
ever having been used, despite it existing for 2+ years here.
2017-12-13 06:16:02 +00:00
Dominyk Tiller
d6ebdf1e62
python: handle env filtering on pth check
Since ENV filtering became the default this has been chucking
erroneous warnings from both `brew doctor` and things like `brew install pygobject`
about needing to run:
```
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/xyz/Library/Python/2.7/lib/python/site-packages/homebrew.pth
```
even though I had Homebrew's `python` installed.
2017-12-13 06:09:37 +00:00