187 Commits
Author SHA1 Message Date
Carlo Cabrera 797c77761a language/python: bug fix
Fixes a bug introduced in 09570fc7a6.
2021-09-22 20:30:32 +08:00
Carlo Cabrera 09570fc7a6 language/python: allow formulae to restrict access to system site packages
Also, clean up one use of an `options` hash, because this is no longer
needed.

Closes #11885.
2021-09-21 13:21:26 +08:00
Mike McQuaid b622c36be6 Add, use uses_from_macos_names.
This strips e.g. `:build` tags.
2021-09-14 09:48:19 +01:00
Bo Anderson 8dd11e4e4c Set uses_from_macos_elements in all cases 2021-09-14 04:06:40 +01:00
Bo Anderson 861dea9ada Bump various type strictnesses 2021-09-11 01:00:23 +01:00
Carlo Cabrera 3d3b9874f9 language/python: create venvs with access to system site packages
A user may wish to use two use two brew-installed Python packages
together. For example, one might want to `import numpy` when using
`jupyterlab` or `ptpython`.

Currently, the only ways to do this I'm aware of is with some hacking of
`PYTHONPATH` or the creation of `.pth` files in a formula's prefix.

A better solution is to allow the virtualenvs that `brew` creates to
have access to system site-packages by default, so that `import numpy`
inside `ptpython` or `jupyterlab` just works.

Partially resolves Homebrew/homebrew-core#76950.
2021-06-28 03:20:03 +01:00
Misty De Meo c0a02442d9 Revert "language/java: use shortened brew paths"
This reverts commits 318175cfe2,
e7ab760392 and
3b35af63f6 (PR #11537).
2021-06-17 20:29:43 -07:00
Caleb Xu 3b35af63f6 language/java: use shortened brew paths 2021-06-15 09:59:20 -04:00
Bo Anderson 5f41016267 Support handling of rewriting shebangs with flags
Fixes #11108.
2021-05-10 06:13:58 +01:00
Bo Anderson 8db3c6bfd0 language/perl: use versioned shebang 2021-05-10 05:50:08 +01:00
Bo Anderson 728bb547a7 language: raise ShebangDetectionError rather than a generic error 2021-05-10 05:50:08 +01:00
Bo Anderson 20ff68a425 Fix brew style. 2021-03-17 20:45:44 +00:00
Rylan Polster 4c4dcfa3bb language/python: remove outdated "homebrew-" resource handling 2021-03-14 14:17:02 -04:00
Dustin Rodrigues c8e99e5185 python: stop passing no-user flag on installation 2021-02-19 12:49:10 -05:00
Jonathan Chang d6bba1c493 java: fix java_home on macOS 2021-02-02 18:49:29 +11:00
Mike McQuaid d6957a3acb Homebrew 3.0.0 deprecations/disables 2021-01-29 19:50:24 +00:00
EricFromCanada a427de5bee capitalization fixes
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
Dustin Rodrigues 425535e32b python: add --no-user when doing pip install 2021-01-09 10:09:44 -05:00
Dustin Rodrigues 19a47d7c50 python: use built-in venv instead of virtualenv when installing formulae 2021-01-09 10:09:44 -05:00
Mike McQuaid 1171a3b8fe Remove language/haskell
The referenced file no longer exists.
2020-12-21 09:29:55 +00:00
Rylan Polster 7f260f92b9 language/python: update homebrew-virtualenv resource 2020-12-12 14:24:58 -05:00
Francois-Xavier Coudert 0670ec4d09 python: update virtualenv 2020-12-02 09:54:18 +01:00
Markus Reiter 5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
Dustin Rodrigues 84de3c1eb6 python: allow multi-digit minor versions 2020-11-22 10:45:06 -05:00
Markus Reiter 0184e271d8 Fix RuboCop offenses. 2020-11-17 11:09:55 +01:00
Markus Reiter da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Dustin RodriguesandGitHub 0f3c4b1781 Merge pull request #9048 from dtrodrigues/npm-scripts
language/node: remove unneeded scripts prior to installation
2020-11-06 07:07:39 -05:00
f9a15e7443 Update Library/Homebrew/language/node.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-11-06 06:40:50 -05:00
EricFromCanada 3768b7a6e9 apidoc: update comment wording, punctuation, formatting 2020-11-06 00:21:02 -05:00
EricFromCanada 4f7719ac2e apidoc: update examples' syntax 2020-11-05 23:50:55 -05:00
Dustin Rodrigues c062429ddd language/node: remove unneeded scripts prior to installation 2020-11-05 21:10:51 -05:00
FX CoudertandGitHub b4ad930b5d python: update virtualenv 2020-10-30 18:04:54 +01:00
Diogo AzevedoandMike McQuaid 35a7e336be node: add support for npm 7
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-10-24 15:26:36 +02:00
Markus Reiter 61b79318ed Move include Kernel into .rbi files again and split up existing .rbi files. 2020-10-10 19:10:58 +02:00
Markus Reiter 24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
Michka Popoff ddc73ffa0c python: do not add main brewed Python site-package to virtualenv
If added, this makes the virtualenv read the main site-package from brewed Python,
and especially makes it read our sitecustomize.py file, which will
modify the sys.executable path.

See the full discussion at:
https://github.com/Homebrew/brew/pull/8873

I also took the opportunity to not include test deps, as these will
be not be installed, so the .pth file should not contains references
to site-packages from test deps.

Previous packages on Linux did already contain the wrong lines in the pth file,
for example:
cat /home/linuxbrew/.linuxbrew/Cellar/aws-google-auth/0.0.36_1/libexec/lib/python3.8/site-packages/homebrew_deps.pth
import site; site.addsitedir('/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/site-packages')
import site; site.addsitedir('/home/linuxbrew/.linuxbrew/opt/libxml2/lib/python3.8/site-packages')

This might have caused subtle bugs for some packages but not for others.
2020-10-08 19:03:51 +02:00
Rylan Polster 0109ce58be update references to homebrew-virtualenv resources 2020-10-06 23:39:52 -04:00
Rylan Polster 43648100b4 virtualenv: use version 20 to support Python 3.9 2020-10-06 22:27:52 -04:00
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 CoudertandGitHub 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