- 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.
ClosesHomebrew/homebrew#14689.
ClosesHomebrew/homebrew#14686.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
- 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).
ClosesHomebrew/homebrew#14199.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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>
- 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. (ClosesHomebrew/homebrew#12581)
- Enable warnings, because python's configure needs it. (ClosesHomebrew/homebrew#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 Homebrew/homebrew#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>
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>
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.
ClosesHomebrew/homebrew#7738.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
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.
ClosesHomebrew/homebrew#6248.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
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.
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>
Many updates and (hopefully) improvements to the Python formula, including:
* Build as shared by default.
* Better handling of Framework builds.
* More reasonable Homebrew+site-packages support.
* Documentation (as a comment in the formula)