diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-17 17:21:39 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-17 17:21:39 -0500 |
commit | cff3a4820a926b379b5556ab28c9e5bd67152926 (patch) | |
tree | 10712d7a77d253e55809b0548de9f9f0c399a0d2 | |
parent | fcdbdc6fa628daffb6e80d5f333311705f86207a (diff) | |
download | python-setuptools-git-cff3a4820a926b379b5556ab28c9e5bd67152926.tar.gz |
Use a local path rather than a tempdir that never gets cleaned up.
-rw-r--r-- | scripts/upload-old-releases-as-zip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upload-old-releases-as-zip.py b/scripts/upload-old-releases-as-zip.py index c4b1bfb5..38cfcd55 100644 --- a/scripts/upload-old-releases-as-zip.py +++ b/scripts/upload-old-releases-as-zip.py @@ -13,7 +13,6 @@ import json import os import shutil import tarfile -import tempfile import codecs import urllib.request import urllib.parse @@ -33,7 +32,8 @@ class SetuptoolsOldReleasesWithoutZip: """docstring for SetuptoolsOldReleases""" def __init__(self): - self.dirpath = tempfile.mkdtemp(prefix=DISTRIBUTION) + self.dirpath = './dist' + os.makedirs(self.dirpath, exist_ok=True) print("Downloading %s releases..." % DISTRIBUTION) print("All releases will be downloaded to %s" % self.dirpath) self.data_json_setuptools = self.get_json_data(DISTRIBUTION) |