Staging
v0.8.1
v0.8.1
Revision 7a6f59e123db1ff4bdf311711ad179421ee12b83 authored by Ned Deily on 29 March 2018, 11:41:11 UTC, committed by GitHub on 29 March 2018, 11:41:11 UTC
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.
1 parent a470b74
rmpyc.py
# Remove all the .pyc files under ../Lib.
def deltree(root):
import os
from os.path import join
npyc = 0
for root, dirs, files in os.walk(root):
for name in files:
# to be thorough
if name.endswith(('.pyc', '.pyo')):
npyc += 1
os.remove(join(root, name))
return npyc
npyc = deltree("../Lib")
print(npyc, ".pyc deleted")
Computing file changes ...