aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
AgeCommit message (Collapse)Author
2012-10-08python: For Xcode-only, add the the Tk header dirsamueljohn
Closes #15351. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-02python: Fix universal build for superenvsamueljohn
Closes #15243. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-02Replace mentions of easy_install by pipsamueljohn
Use this chance to correct minor typos. Closes #15242. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-01python: Fix site-packages installs via pip (& co.)samueljohn
- Removed accidently added -py-debug - Ensure HOMEBREW_PREFIX/share/python exists as a dir - Don't change the sys.prefix (broke virtualenv) and instead add install-lib dir to distutils.cfg. superenv respects brewed python Closes #15220. Signed-off-by: Max Howell <mxcl@me.com>
2012-09-29python goes superenvsamueljohn
- Install a sitecustomize.py that is only executed for brewed python to - Fix the prefix, python thinks it is installed to. (Remember, Python thinks it lives in the Cellar) - Remove "/System/..." stuff from sys.path which caused a lot of install trouble because setuptools has the habbit to inject itself upfront, overwriting our distribute. - Allow --with-poll and don't say, we didn't warn you. - Don't need depends_on :x11 any longer. Yeah, no XQuartz! - Add --with-brewed-openssl - pip 1.2.1 - pip, pip-2.7, easy_install and easy_install-2.7 are installed to prefix, such that they are directly available, even if people have not set their PATH to include $(brew --prefix)/share/python - Caveats shorter and clear. - For Xcode-only: - Patch the distutils buildsystem to use "xcrun cc" etc. - Teach distutils the MacOS.sdk_path (for incs and libs) - superenv.rb add the right python include dir depending on whether a brewed python is installed or not. Closes #15064. Signed-off-by: Max Howell <mxcl@me.com>
2012-09-14Use `env`.Adam Vandenberg
2012-09-14python/3: remove skip-cleanAdam Vandenberg
2012-09-14python/3: more verbose install of distribute/pipsamueljohn
Closes #14932. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-09Python: add DTrace supportLee Packham
Makes use of a patch from http://bugs.python.org/issue13405 with the first part modified to remove the .hgignore patch. This ends up providing full probes in OSX just like you have with built-in Python. Closes #14343. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-04python2/3: Harden against other pythons. Pip 1.2samueljohn
- Unset PYTHONPATH and PYTHONHOME which would lead to install distribute and pip into the wrong python. - For NCLT: Add to CPPFLAGS the path to zlib via -I because python's setup.py scans only these flags. - '-Qunused-arguments' can be added after ENV.enable_warnings to reduce noise. The only thing which we must not add is the "-w" switch! - For python.rb only: Pass "--no-user-cfg" to python setup.py and add --force when installing distribute and pip to ensure overwriting with the new ones. Closes #14689. Closes #14686. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-03Batch convert MD5 formula to SHA1.Mike McQuaid
Closes #14653.
2012-08-20python: optional deps are really recommendedJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20python/python3: don't duplicate TkCheck requirementJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18python: ENV.minimal_optimization. Remove 2to3 fixsamueljohn
- Extras now in HOMEBREW_PREFIX/share/python/Extras instead of HOMEBREW_PREFIX/share/python2.7/Extras - Assure no '-march=...' or '-msse4' or similar flags are there because `python-config --cflags` reports them later and can break certain c-extensions. (happend for SciPy). Closes #14199. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14python: tighten '2to3' checkJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14python: update commentsJack Nagel
We only offer framework builds, so remove comments that suggest otherwise. Use HOMEBREW_PREFIX instead of `brew --prefix`, as that is what is available inside of the formula, and how it is referenced elsewhere in Homebrew. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13python: fix typoJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13python: use options DSLJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-08python: Now framework style. Bug fixes.samueljohn
- Framework style build in order to support wxmac and other GUIs (Note: PySide (and pyqt?) seem to work even with non-framework builds). - Fixed automatic installation of `*.app`s into `/Applications`. - The caveats tell us now about `brew link apps`. - Cleanup of the caveats. - Resolve the issue of duplicate `2to3` can make the symlink phase to break because both python and python3 provide it. (Closes #12581) - Enable warnings, because python's configure needs it. (Closes #12194) - Add suppression of recommended warnings from the python docs. - Add work-a-round for python bug: http://bugs.python.org/issue11445 - Add explicit test if sqlite3 built successful. - Check against possible issue like #12667. - Add needed "depends_on :x11" because tk.h includes x11. - Install the Demo into HOMEBREW_PREFIX/share/python2.7/Extras - Ensure sqlite from homebrew is used and not the one from OS X. - Removed unnecessary flags from configure - Added --without-gcc to the configure flags (all clang now) - Ensure that "man python2.7" works by setting --datadir and --datarootdir to share. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-07-26distribute 0.6.28papaeye
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-24Python: add check for rogue Tk frameworkAdam Vandenberg
Fixes #11602.
2012-06-12python: Install pipsamueljohn
Using the recommended way of installing stuff nowadays: pip. easy_install is still in place and can be used but pip supports uninstalling and other features easy_install lacks. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-23python: caveats tell the correct Framework linkssamueljohn
The old ~/Frameworks is and never was a standard. It should be under Library. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-05-21distribute 0.6.27Adam Vandenberg
subformula of Python, Python 3, PyPy
2012-05-06python: validate output in testJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-12Python checks for pkg-config at configure timeAdam Vandenberg
2012-04-11Python 2.7.3 + distribute 0.6.26Adam Vandenberg
2012-03-16Python: use distribute 0.6.25.Jannis Leidel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-25Python: add more references for bugAdam Vandenberg
2012-02-25Python: style tweakAdam Vandenberg
2012-02-25Python requires -fwrapv for Decimal divisionClay McClure
According to: http://stackoverflow.com/questions/7590137/dividing-decimals-yields-invalid-results-in-python-2-5-to-2-7 the Python interpreter must be built with -fwrapv for proper Decimal division. To test: python -c "from decimal import Decimal; print Decimal(4) / Decimal(2)" If built with -fwrapv, this yields 2. Closes #10487. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-25Python: add Decimal division testAdam Vandenberg
2012-02-25Python 2/3: add effective_includeAdam Vandenberg
2012-01-10Python: always remove HAVE_POLLAdam Vandenberg
2011-11-15Python: show where distutils.cfg is written to in caveatsAdam Vandenberg
2011-10-28Distribute 0.6.24Adam Vandenberg
2011-09-22python: update distribute md5Richard West
http://pypi.python.org/packages/source/d/distribute/ Closes #7765. Closes #7768. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21Add gdbm patches to python and python3 formulaeJack Nagel
This takes care of the issue described here (recognizing gdbm 1.9.x databases): http://www.gossamer-threads.com/lists/python/bugs/942749 The patches are already in their respective upstream repositories, so they will presumably be included in the next Python 2.7.x and 3.2.x releases. Closes #7738. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-01Python: edit and add commentsAdam Vandenberg
2011-09-01Python 2.7.2: use newer distributeAdam Vandenberg
2011-08-30Python: Add `pythonw` for non-Framework installsAlexei Sholik
We hardlink pythonw and pythonw2.7 to python and python2.7 respectively. They may be used by 3rd party tools (like PyQt4) and, for some reason, python's install script doesn't provide them when doing a non-framework install. The man page (which comes with Mac OS X) on pythonw reads: As of Python 2.5, python and pythonw are interchangeable; both execute Python in the context of an application bundle, which means they have access to the Graphical User Interface; thus both can, when properly programmed, display windows, dialogs, etc. See also this discussion https://github.com/mxcl/homebrew/issues/6176. Hardlinks are placed in the same directory in which python and python2.7 reside in order to be symlinked to /usr/local/bin as part of the installation process. This also ensures a clean uninstall of the formula. Closes #6248. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-07-16Python 2.7.2: Use newer distributeAdam Vandenberg
2011-06-18Python: fix version number in commentsAlexey Palazhchenko
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-12Python 2.7.2Kenneth Reitz
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-23Use ARGV.build_universal?Adam Vandenberg
2011-04-04Rewrite caveats to new style.Adam Vandenberg
To make it easier to copy and paste multiline scripts from caveats, no longer use $ as a prompt marker.
2011-03-29python: better site-packages and install-scriptsAdam Vandenberg
Previous versions of the Python 2.x formula did not set up the site-packages and install-scripts folders in a way friendly to updates of Python itself.
2011-03-17Add option to python formula to remove pollYacin Nadji
Apple's implementation of poll does not support devices, which causes socket operations that rely on a properly functioning poll to fail with Errno 35 [2]. This creates an option to strip out poll entirely, which is what Apple does for the binaries they package with the OS [1]. 1: https://svn.macports.org/ticket/18376 2: http://bugs.python.org/issue5154 Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Use ruby style for inheritance.Adam Vandenberg
2010-11-28Updated Python formula to 2.7.1.Jannis Leidel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>