summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/command
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-09-18 18:11:48 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-09-18 18:11:48 (GMT)
commit229011d949f40c898ca4e146f3120af326a3f40d (patch)
treea804e7c1bd83270b459a55d9cc104fcb805bbefd /Lib/packaging/command
parent41479450ece3bb5c01a49b5efd5d17021ca401ec (diff)
downloadcpython-229011d949f40c898ca4e146f3120af326a3f40d.zip
cpython-229011d949f40c898ca4e146f3120af326a3f40d.tar.gz
cpython-229011d949f40c898ca4e146f3120af326a3f40d.tar.bz2
Make a number of small changes to ease the backport to distutils2
Diffstat (limited to 'Lib/packaging/command')
-rw-r--r--Lib/packaging/command/build_clib.py3
-rw-r--r--Lib/packaging/command/upload_docs.py1
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/packaging/command/build_clib.py b/Lib/packaging/command/build_clib.py
index 4a24996..5388ccd 100644
--- a/Lib/packaging/command/build_clib.py
+++ b/Lib/packaging/command/build_clib.py
@@ -16,7 +16,7 @@ distribution and needed by extension modules.
import os
from packaging.command.cmd import Command
from packaging.errors import PackagingSetupError
-from packaging.compiler import customize_compiler
+from packaging.compiler import customize_compiler, new_compiler
from packaging import logger
@@ -93,7 +93,6 @@ class build_clib(Command):
return
# Yech -- this is cut 'n pasted from build_ext.py!
- from packaging.compiler import new_compiler
self.compiler = new_compiler(compiler=self.compiler,
dry_run=self.dry_run,
force=self.force)
diff --git a/Lib/packaging/command/upload_docs.py b/Lib/packaging/command/upload_docs.py
index 03dd3ec..30e37b5 100644
--- a/Lib/packaging/command/upload_docs.py
+++ b/Lib/packaging/command/upload_docs.py
@@ -87,6 +87,7 @@ class upload_docs(Command):
content_type, body = encode_multipart(fields, files)
credentials = self.username + ':' + self.password
+ # FIXME should use explicit encoding
auth = b"Basic " + base64.encodebytes(credentials.encode()).strip()
logger.info("Submitting documentation to %s", self.repository)