aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/language
AgeCommit message (Collapse)Author
2018-03-03Merge pull request #3863 from MikeMcQuaid/python3-changesHEADmasterMike McQuaid
Adjust docs and more internal code for Python 3.
2018-03-03Adjust docs and more internal code for Python 3.Mike McQuaid
Now we have `python` for Python 3 and `python@2` for Python 2 some more adjustments need to be made.
2018-03-02language/python: version 3.6 in site_packagesSteven Peters
2018-02-28language/python: handle python@* in each_pythonilovezfs
2017-12-30language/python: handle python@* in virtualenv_install_with_resourcesilovezfs
2017-12-13Merge pull request #3573 from DomT4/python_dead_codeMike McQuaid
python: remove package_available? logic
2017-12-13python: remove package_available? logicDominyk Tiller
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-13python: handle env filtering on pth checkDominyk Tiller
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-10-24Remove usless comments.Markus Reiter
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-09-24Rubocop: automatic rule fixes.Mike McQuaid
2017-07-11python_virtualenv_constants: update virtualenv to 15.1.0JCount
This release adds support for Python 3.6, the current python3 version in homebrew/core.
2017-07-07language/node: general cleanup.Mike McQuaid
- Avoid using a temporary variable where not necessary - Use fewer, better stubs in the tests to avoid warnings and better test the implemented functionality.
2017-06-30partly revert log verbose npm pack output commitChristian Moritz
to fix issues with shwoing npm debug output even on non-verbose install runs.
2017-06-29language/node: set cache config via argumentChristian Moritz
instead of writing a .npmrc file, which simplifies the code. npm_cache_config is still preserved for backwarts compatiblility and usage int he kibana@n formulas in core.
2017-06-29language/node: npm pack ignore prepublish scriptsChristian Moritz
This tells npm pack to don't run prepublish scripts at all. I think this is the best default because: * most modules don't have a prepublish script at all and aren't affected by this change * most prepublish scripts are calling devDeps, which would fail in our case, because (dev)Deps aren't installed at npm pack time until #2820 gets resolved * we favor npm registry tarball for formula downloads, which are already prepublished, so we would in the best case needlessly run prepublish a second time and in the worst case it would fail (because a clean step is required before running prepublish a second time in a row) * This change does the right thing for >99% of all the packages and would only affect packages with prepublish scripts downloaded from a non-npm registry tarball (like github tarballs) and with a prepublish script wich does no't require any devDep (unlike for cross platform)
2017-06-29language/node: log verbose npm pack outputChristian Moritz
This makes npm pack to log verbose debug output to the console to simplify debugging npm pack failures. Refs: https://github.com/Homebrew/brew/pull/2820#discussion_r123890729 Prevously Utils.popen_read swallowed all debug output.
2017-06-29language/node: make packname detection more robustChristian Moritz
This fixes some edge cases where verbose output from a prepublish script could break our npm pack package name detection code by only using the last line of the output printed by npm itself containing the desired package name.
2017-06-29language/node: build native addons from sourceChristian Moritz
By telling node-pre-gyp and prebuild to don't pull prebuild binaries and instead build them from source. This still may not work for some custom third party scripts for pulling prebuild binaries.
2017-06-29language/node: set npm loglevel to max -dddChristian Moritz
to match the loglevel used in npm_debug.log (previous --verbose loglevel would match -dd)
2017-06-23Added rescue FormulaUnavailableError to setup_npm_environmentmansimarkaur
2017-06-12Autocorrect Rubocop Style/SpecialGlobalVars.Mike McQuaid
2017-06-01language/node: adjustments for npm 5.0.xDominyk Tiller
Goes with: https://github.com/Homebrew/homebrew-core/pull/14085
2017-05-29Fixup all RuboCop warnings.Mike McQuaid
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2016-10-04Immortalize virtualenvs betterTim D. Smith
virtualenvs remember the prefix of the python that created them and do magic to load packages from them; help them remember a more durable path.
2016-10-02virtualenv_install_with_resources: select correct pythonilovezfs
`virtualenv_install_with_resources` will now attempt to guess the desired Python based on the active build options and based on the dependencies and requirements. When the situation is ambiguous (e.g., `depends_on :python3` and `build.with? "python"` is true) raise `FormulaAmbiguousPythonError` unless `:using => "python"` or `:using => "python3"` has been passed to resolve the ambiguity. In most cases, this will allow ``` virtualenv_create(libexec, "python3") virtualenv_install_with_resources ``` to be changed to just ``` virtualenv_install_with_resources ```
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-10language/python_virtualenv_constants: fix Rubocop warnings.Mike McQuaid
2016-09-10language/python: fix Rubocop warnings.Mike McQuaid
2016-09-10language/node: fix Rubocop warnings.Mike McQuaid
2016-09-10language/haskell: fix Rubocop warnings.Mike McQuaid
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-08-02python: tweak script linking in virtualenv (#613)Martin Afanasjew
* python: tweak script linking in virtualenv Instead of making the formula author use a slightly awkward block like venv.link_scripts(bin) { venv.pip_install buildpath } avoid exposing this implementation detail and offer the more familiar: venv.pip_install buildpath, :link_scripts => bin * Add non-block form and use instead of recursion * Update 'pip_install' documentation * Remove obsolete 'link_scripts' * Add test for 'pip_install' with linking scripts Also drop no longer relevant (and broken) `link_scripts` test, that served as a template for the new test. * Restore compatibility with Ruby 1.8.7 * Replace option hash with 'pip_install_and_link' * Avoid confusing 'Object#tap' and fix silly bug * Avoid side effects in mock object parameter check * Simplify argument check (no need for a block)
2016-07-31Allow virtualenvs to find Python bindings provided by deps (#608)Tim D. Smith
Allow virtualenvs to find Python bindings provided by deps Closes #603.
2016-07-29Refurbish args in virtualenv (#600)Tim D. Smith
Instead of adding additional lines to formula.rb: https://git.io/vKxxh just turn on argument refurbishment for any formula that creates a virtualenv. cf Homebrew/ruby-macho#50, Homebrew/homebrew-core#1663
2016-07-26Add helper class for Python virtualenvsTim D. Smith
2016-07-16Unify Version.create usageVlad Shablinsky
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
2016-07-10languages/go: die on empty arrays if HOMEBREW_DEVELOPERDominyk Tiller
2016-07-09language/python: fix bogus requireMartin Afanasjew
Including the extension is not an error, but we don't normally do this.
2016-05-21Haskell::Cabal: fix overquoting of flagsilovezfs
Since `system` escapes its own spaces, cabal was interpreting `--flags='webapp s3'` as `+'webapp +s3'` rather than `+webapp +s3`. Closes #267. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-05-02Update Homebrew/homebrew references in commentsMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-04-27Language::Node.npm_install_args: add helper method (#37)Christian Moritz
* add Language::Node helper module This adds a language module for Node module based formulas. It contains the 2 public methods `std_npm_install_args(libexec)` and `local_npm_install_args`: * `std_npm_install_args` is intended to be used in formulas for standard node modules and returns `npm install` args for a global style module installation to libexec. * `local_npm_install_args` is for formulas, in which the `npm install` step is only one of multiple parts of the installation process and returns `npm install` args for a default local installation in place. Both methods have in common, that they are * making sure that a working copy of npm and node-gyp from node's libexec is prepended to the PATH (to not rely of a user managed npm) * seting the npm cache to HOMEBREW_CACHE/npm, which fixes issues caused by overriding $HOME resulting in long install times + high disk usage (see https://github.com/Homebrew/brew/pull/37#issuecomment-208840366) * audit: update npm install check for Language::Node * cleanup: remove npm_cache too * doc: add Node-for-Formula-Authors.md
2016-02-25Haskell: cap cabal-install make jobs at 64Misty De Meo
Fixes Homebrew/homebrew#49509. Closes Homebrew/homebrew#49511. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-22haskell: fix empty flags build failuresilovezfs
Fixes a regression introduced by Homebrew/homebrew#47950 in 9e3ee3e causing build failures with the error cabal: The file does not exist ''. This will occur whenever the optional :flags key isn't in the options hash passed to install_cabal_package. Closes Homebrew/homebrew#49425. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-22git-annex: force-enable "webapp" flagCedric Staub
To address issue Homebrew/homebrew#47346 (git-annex-webapp missing), we explicitly enable the "webapp" flag for git-annex. This should prevent git-annex from being built without the webapp and make the build fail if there is e.g. a dependency issue. Closes Homebrew/homebrew#47950. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-02-21go: warn about no-op stage_deps callsBaptiste Fontaine
Closes Homebrew/homebrew#49389. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-21Haskell#cabal_install more robust deps resolutionilovezfs
The default max-backjumps can be too low, especially since Language::Haskell::Cabal doesn't guarantee an LTS config. In particular, this fixes a git-annex build failure in Homebrew/homebrew#47950 Closes Homebrew/homebrew#49158. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-03languages/haskell: style nitsDominyk Tiller