149 Commits

Author SHA1 Message Date
Mike McQuaid
f04b014210
language/python: build python binary names dynamically.
Co-authored-by: Alexander Bayandin <a.bayandin@gmail.com>
2020-09-16 12:47:20 +01:00
FX Coudert
57c136e848
python.rb: prepare for Python 3.9 2020-09-15 22:41:15 +02:00
Seeker
f366280e18 formula: add any_installed_version 2020-09-01 09:45:54 -07:00
Seeker
5def0701ba formula: rename opt_or_installed_prefix_keg to any_installed_keg 2020-09-01 09:39:20 -07:00
Markus Reiter
4972b1935e Document Language::Perl. 2020-08-26 03:13:58 +02:00
Markus Reiter
d50faba744 Document Language::Node. 2020-08-26 03:13:58 +02:00
Markus Reiter
b18700625c Document Language::Java. 2020-08-26 03:13:58 +02:00
Markus Reiter
609c5e4a35 Document Language::Go. 2020-08-26 03:13:58 +02:00
Seeker
d5f552f3a0 language/java: check installed openjdk version instead of latest version 2020-08-21 12:35:31 -07:00
Markus Reiter
da0ff4feb0 Remove PYTHON_VIRTUALENV_* constants. 2020-08-19 10:45:56 +02:00
Markus Reiter
e909ea2471 Refactor and document Language::Python. 2020-08-19 10:45:56 +02:00
Jonathan Chang
76709d82c5 Fix brew style. 2020-07-13 23:24:14 +10:00
Bo Anderson
1c73393b47 language/python: raise if we can't detect the Python to use for venv 2020-07-09 15:43:36 +01:00
Bo Anderson
f01d264c3c language/python: allow python@3.7 to be used for virtualenvs 2020-07-09 15:31:53 +01:00
Seeker
02d6b671e6 Revert "python_virtualenv_constants: upgrade virtualenv to 20.0.26"
This reverts commit 6dbcf83a21d36a0c03990a923cc07ef4a06e4e7f.
2020-07-08 22:50:50 -07:00
Chongyu Zhu
6dbcf83a21
python_virtualenv_constants: upgrade virtualenv to 20.0.26 2020-07-08 20:57:30 +08:00
Mike McQuaid
fa760a2f26
Fix brew style. 2020-07-07 13:12:37 +01:00
Rylan Polster
a7a9793f99 needs_python? separate formula name from tap name 2020-07-03 16:37:32 -04:00
Bo Anderson
cd0c3fa835 extend/pathname: use Java.overridable_java_home_env in write_jar_script 2020-06-19 12:04:30 +01:00
Bo Anderson
cd93d4e38a language/java: add support for OpenJDK formula 2020-06-19 11:46:31 +01:00
Alexander Bayandin
4d27c32d44 Revert "Merge pull request #7722 from Bo98/java-improvements"
This reverts commit 91b4d450703bcc2de6dce22eb5fdecb5a843f92e, reversing
changes made to c98901132595178b6261cbe2d51ab732dd77dac4.
2020-06-18 12:23:02 +01:00
Bo Anderson
07547e8cae extend/pathname: use Java.overridable_java_home_env in write_jar_script 2020-06-10 17:08:41 +01:00
Bo Anderson
bbb2696742 language/java: add support for OpenJDK formula 2020-06-10 17:08:38 +01:00
Bo Anderson
d56c6b31a0 language/java: deprecate java_home_cmd 2020-06-10 15:11:56 +01:00
Mike McQuaid
4f75a77b08
Update deprecations
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
Bo Anderson
e03846720c language/haskell: move to compat 2020-05-16 15:00:09 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig. 2020-04-07 09:58:26 +01:00
Bo Anderson
32ab83d055 language/python: move rewrite_python_shebang to compat 2020-03-27 22:27:06 +00:00
Bo Anderson
5d68856350 language/python: use rewrite_shebang, add detected_python_shebang 2020-03-27 19:18:23 +00:00
Bo Anderson
878bb0e983 language/perl: add detected_perl_shebang 2020-03-27 19:18:19 +00:00
Michka Popoff
30c4383e86
Merge pull request #7141 from iMichka/regex
rewrite_python_shebang: make version part optional
2020-03-10 22:29:54 +01:00
Michka Popoff
cccd8d3655 rewrite_python_shebang: make version part optional
We forgot about the simplest case:
/usr/bin/env python
2020-03-10 22:11:45 +01:00
Bo Anderson
2594e7093e language/python: fix virtualenv symlinks for versioned Python 2020-03-10 14:17:30 +00:00
Alexander Bayandin
9bab086967 rewrite_python_shebang: move loop invariants out of loop 2020-03-05 23:20:16 +00:00
Peter Teixeira
7ccec0cdf0 Use literal "python" 2020-03-04 10:13:32 -05:00
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