Skip to content

Instantly share code, notes, and snippets.

diff --git a/pip/cmdoptions.py b/pip/cmdoptions.py
index 85b9abc..809d3a5 100644
--- a/pip/cmdoptions.py
+++ b/pip/cmdoptions.py
@@ -297,9 +297,8 @@ no_use_wheel = OptionMaker(
download_cache = OptionMaker(
'--download-cache',
dest='download_cache',
- metavar='dir',
default=None,
diff --git a/pip/download.py b/pip/download.py
index 4c23f5e..f503320 100644
--- a/pip/download.py
+++ b/pip/download.py
@@ -18,6 +18,7 @@ from pip.util import (splitext, rmtree, format_size, display_path,
backup_dir, ask_path_exists, unpack_file,
create_download_cache_folder, cache_download)
from pip.vcs import vcs
+from pip.locations import HTTP_CACHE_DIR
from pip.log import logger
# BAD
from flask import request as global_request
def do_a_thing_globally():
print(global_request.session["username"])
def view():
do_a_thing_globally()
diff --git a/detox.sh b/detox.sh
index e69de29..5fb8286 100755
--- a/detox.sh
+++ b/detox.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Create the sdist
+rm -rf .tox/dist
+python setup.py sdist --formats zip --dist-dir .tox/dist

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')

Everything is pip 1.4+ all downloads starting 2014-01-02 and ending with 2014-04-13.

SELECT python_type, array_to_string(python_release[0:2], '.') AS python_release, COUNT(*)
FROM (
    SELECT
        python_type,
        string_to_array(
            (
                CASE WHEN (python_release IS NULL OR python_release = '')