Commit graph

3118 commits

Author SHA1 Message Date
Greg Price 9ece4a5057 Unmark files as executable that can't actually be executed. (GH-15353)
There are plenty of legitimate scripts in the tree that begin with a
`#!`, but also a few that seem to be marked executable by mistake.

Found them with this command -- it gets executable files known to Git,
filters to the ones that don't start with a `#!`, and then unmarks
them as executable:

    $ git ls-files --stage \
      | perl -lane 'print $F[3] if (!/^100644/)' \
      | while read f; do
          head -c2 "$f" | grep -qxF '#!' \
          || chmod a-x "$f"; \
        done

Looking at the list by hand confirms that we didn't sweep up any
files that should have the executable bit after all.  In particular

 * The `.psd` files are images from Photoshop.

 * The `.bat` files sure look like things that can be run.
   But we have lots of other `.bat` files, and they don't have
   this bit set, so it must not be needed for them.



Automerge-Triggered-By: @benjaminp
2019-08-20 21:53:59 -07:00
Ned Deily fc1fbe6099
Minor updates to the macOS installer screens for 3.8.0b2 (GH-14501) 2019-07-01 05:53:42 -04:00
animalize d8f336fdc1 bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14180) 2019-06-18 05:25:19 -04:00
Ned Deily f3fb8393e3
bpo-34631: Updated OpenSSL to 1.1.1c in macOS installer (GH-14187) 2019-06-18 04:17:33 -04:00
Ned Deily 29ec422810
Pin macOS installer Sphinx to v2.0.1 (GH-13774) 2019-06-03 08:00:25 -04:00
cclauss d337169156 Fix variable name copy/paste error in build-installer.py (GH-13038) 2019-06-02 23:19:44 -04:00
Jon Janzen c981ad16b0 bpo-26707: Enable plistlib to read UID keys. (GH-12153)
Plistlib currently throws an exception when asked to decode a valid
.plist file that was generated by Apple's NSKeyedArchiver. Specifically,
this is caused by a byte 0x80 (signifying a UID) not being understood.

This fixes the problem by enabling the binary plist reader and writer
to read and write plistlib.UID objects.
2019-05-15 23:14:38 +03:00
Ned Deily 9bdd6d1c2a
Prevent macOS installer build failure if ABIFLAGS is empty. (GH-13012) 2019-04-29 15:11:53 -04:00
Ned Deily 2c2ba05a6b
Update macOS installer Welcome and ReadMe for 3.8 (GH-11748) 2019-02-03 00:41:20 -05:00
Benjamin Peterson 9a69ae8a78
Bump copyright years to 2019. (GH-11404) 2019-01-02 07:46:53 -08:00
Ned Deily 0133f9fc9e macOS installer build: mitigate hdiutil resource busy bug (GH-11333) 2018-12-27 13:38:41 -08:00
Ned Deily a936639b22 Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)" (GH-11332)
This reverts commit 7cf3d8e251.

Due to regressions found with using Tk 8.6.9.1, build the python.org macOS installers with Tcl/Tk 8.6.8 as used in previous releases.



https://bugs.python.org/issue35402
2018-12-27 13:13:30 -08:00
Ned Deily 7cf3d8e251
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101) 2018-12-11 01:06:57 -05:00
Ned Deily 3ec982640f bpo-35401: Update macOS installer to OpenSSL 1.1.0j (GH-11094)
https://bugs.python.org/issue35401
2018-12-10 21:24:06 -08:00
Ned Deily 3102e24d83
bpo-34405: Update to OpenSSL 1.1.0i for macOS installer builds (GH-9166) 2018-09-11 08:52:40 -07:00
Ned Deily 378edcd000
Update macOS installer Welcome and ReadMe files for 3.7.0. (GH-7653) 2018-06-11 22:38:03 -04:00
Ned Deily 9d6d06e806
pypi.python.org -> pypi.org (GH-7613) 2018-06-11 00:45:50 -04:00
Thomas Jones 74fc9c0c09 Update Python Folder.icns icon file to match new macOS look (GH-1780)
Patch by Thomas Jones.
2018-05-17 05:14:30 -04:00
Ned Deily fc6aa28bfd
Mitigate macOS race condition in installer build (GH-6686) 2018-05-02 01:41:15 -04:00
Ned Deily 0dd80709b5
bpo-33290: Have macOS installer remove "pip" alias (GH-6683)
Currently, "pip3 install --upgrade pip" unconditionally installs a
"pip" alias even for Python 3.  If a user has an existing Python 3.x
installed from a python.org macOS installer and then subsequently
manually updates to a new version of pip, there may now be a stray
"pip" alias in the Python 3.x framework bin directory which can cause
confusion if the user has both a Python 2.7 and 3.x installed;
if the Python 3.x fw bin directory appears early on $PATH, "pip"
might invoke the pip3 for the Python 3.x rather than the pip for
Python 2.7.  To try to mitigate this, the macOS installer script
for the ensurepip option will unconditionally remove "pip" from
the 3.x framework bin directory being updated / installed.  (The
ambiguity can be avoided by using "pythonx.y -m pip".)
2018-05-02 01:30:33 -04:00
Brett Cannon a8c342465b
bpo-25427: Remove pyvenv (GH-5962) 2018-04-20 14:15:40 -07:00
Ned Deily b405752dab
bpo-33184: Update macOS installer build to use OpenSSL 1.1.0h. (GH-6407) 2018-04-07 02:36:02 -04:00
Ned Deily b9e7fe38a0
bpo-32726: macOS 10.6+ installer now builds Tcl/TK 8.6 (GH-6307)
Build and link with private copy of Tcl/Tk 8.6 for the macOS 10.6+
installer. The 10.9+ installer variant already does this.  This means that
the Python 3.7 provided by the python.org macOS installers no longer need or
use any external versions of Tcl/Tk, either system-provided or user-
installed, such as ActiveTcl.
2018-03-29 08:47:27 -04:00
Ned Deily df532ab752
bpo-32726: Do not force IDLE.app to launch in 32-bit mode. (GH-6279)
Forcing the macOS IDLE.app gui process to launch in 32-mode was
a necessary hack for old versions of Tk (Aqua Carbon as in Tk 8.4
and early versions of 8.5); it is not needed for current versions
of Tk.  Since 32-bit launching will no longer be supported on
future releases of macOS, allow IDLE.app to launch in 64-bit mode.
2018-03-28 03:44:48 -04:00
Ned Deily 37ed6dfbbc Add macOS installer Conclusion file 2018-03-12 16:49:59 -04:00
Ned Deily cc5ac04c07 Update macOS installer resources 2018-02-27 17:39:50 -05:00
Ned Deily 9189e95d9c bpo-32901: update macOS 10.9+ installer to Tcl/Tk 8.6.8 2018-02-27 17:36:12 -05:00
Ned Deily acd7163c0a
bpo-32931: fix macOS 10.9+ installer c++ compiler name (#5855) 2018-02-24 14:30:44 -05:00
Ned Deily 1ca2ffdc53 bpo-32726: Build macOS 10.9+ installer with private copy of Tcl/Tk 8.6 2018-01-31 17:14:12 -05:00
Ned Deily 8c9bb72e8b
bpo-32726: macOS installer and framework enhancements and changes for 3.7.0 (GH-5448)
This issue covers various changes for the macOS installers provided via python.org for 3.7.0.

- Provide a provisional new installer variant for macOS 10.9 and later systems with 64-bit (x86_64) architecture only.  Apple has made it known that future versions of macOS will only fully support 64-bit executables and some other third-party software suppliers have chosen 10.9 as their oldest supported system.
 
- Support **Tcl/Tk 8.6** with the 10.9 installer variant.
 
- Upgrade **OpenSSL** to 1.1.0g and **SQLite** to 3.22.0.
 
- The compiler name used for the interpreter build and for modules built with **Distutils / pip** is now _gcc_ rather than _gcc-4.2_. And extension module builds will no longer try to force use of an old SDK if present.
2018-01-30 07:42:14 -05:00
Benjamin Peterson 65f2a6dcc2
advance copyright years to 2018 (#5094) 2018-01-04 22:34:19 -08:00
Mike 53f7a7c281 bpo-32297: Few misspellings found in Python source code comments. (#4803)
* Fix multiple typos in code comments

* Add spacing in comments (test_logging.py, test_math.py)

* Fix spaces at the beginning of comments in test_logging.py
2017-12-14 13:04:53 +02:00
Ned Deily e6f8a7378d
Update macOS installer to XZ 5.2.3 (#4718) 2017-12-04 22:55:20 -05:00
Ned Deily 24e046987b
bpo-31392: Update macOS installer to use OpenSSL 1.0.2m (#4715) 2017-12-04 22:24:41 -05:00
Ned Deily 9625bf520e
Enable SQLite JSON functions for macOS installer build (#4712) 2017-12-04 21:50:29 -05:00
Mariatta ca7562a7fe bpo-28791: Update macOS installer to use SQLite 3.21.0. (#4245) 2017-12-04 21:04:49 -05:00
Serhiy Storchaka 598ceae876
bpo-32150: Expand tabs to spaces in C files. (#4583) 2017-11-28 17:56:10 +02:00
Ned Deily 380c5fbc6f Update Mac installer Welcome and ReadMe files for 3.7.0a1 2017-09-18 22:22:58 -04:00
Lisa Hewus Fresh 384899dfae bpo-30737: Update DevGuide links to new URL (GH-3228)
Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
2017-08-30 09:37:43 -07:00
Ned Deily b364d9f9c6 More Mac installer fixes for git-based workflow (#2839) 2017-07-24 04:58:43 -04:00
Ned Deily 4c7532e96d Mac installer build now needs venv for docs build (#2828) 2017-07-23 16:39:54 -04:00
Victor Stinner a5c62a8e9f bpo-23404: make touch becomes make regen-all (#1405)
Don't rebuild generated files based on file modification time
anymore, the action is now explicit. Replace "make touch"
with "make regen-all".

Changes:

* Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
* Add a new "make regen-all" command to rebuild all generated files
* Add subcommands to only generate specific files:

  - regen-ast: Include/Python-ast.h and Python/Python-ast.c
  - regen-grammar: Include/graminit.h and Python/graminit.c
  - regen-importlib: Python/importlib_external.h and Python/importlib.h
  - regen-opcode: Include/opcode.h
  - regen-opcode-targets: Python/opcode_targets.h
  - regen-typeslots: Objects/typeslots.inc

* Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN
* pgen is now only built by by "make regen-grammar"
* Add $(srcdir)/ prefix to paths to source files to handle correctly
  compilation outside the source directory

Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make"
default target building Python.
2017-05-03 18:21:48 +02:00
Ned Deily cfcd76777e bpo-29572: Update macOS installer build to OpenSSL 1.0.2k (#457) 2017-03-04 02:33:25 -05:00
Ned Deily 7cd9b22e98 bpo-29550: Temporarily skip "make touch" in Mac installer build. (#456) 2017-03-04 02:16:13 -05:00
Ned Deily 2eb97231b8 merge 3.5 2017-01-02 02:50:33 -05:00
Ned Deily e8134afd8e merge 3.4 2017-01-02 02:48:26 -05:00
Ned Deily 0717564746 merge 3.3 2017-01-02 02:47:35 -05:00
Ned Deily c276ffa0a9 ring IDLE.app into 2017, too 2017-01-02 02:46:09 -05:00
Benjamin Peterson 5848e72ee1 merge 3.5 2017-01-01 22:08:44 -06:00
Benjamin Peterson 4365833d11 merge 3.4 2017-01-01 22:08:33 -06:00