Unable to run setup.py behind proxy
<p>I'm new to python (and linux) and I'm trying to run the setup.py, however it's not working properly because there's a corporative proxy blocking te request to pypi.</p>

<p>I check <a href="http://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/" rel="nofollow noreferrer">this link to properly use the setup.py</a> and also check <a href="https://stackoverflow.com/questions/12144289/installing-python-modules-through-proxy">this</a> and <a href="https://stackoverflow.com/questions/11726881/how-to-set-an-http-proxy-in-python-2-7">this</a> solutions in stackoverflow but I can't make them work (or I'm wrong in the way I'm applying them).</p>

<p>I'm using:</p>

<ul>
<li>virtualenv</li>
<li>virtualenvwrapper</li>
<li>python 2.7</li>
<li>Ubuntu 14</li>
</ul>

<p>I already add the <strong>http_proxy</strong> and <strong>https_proxy</strong> in <code>.profile</code> and <code>.bashrc</code>.</p>

<p>When I use <code>pip install --proxy the.proxy:port some_module</code> it's working properly (also I know the env variables do something is because before that I can't even get to stackoverflow.com, so I'm assuming they work just fine).</p>

<p>What I have already tried is:</p>

<ul>
<li>Trying to use --proxy on python</li>
<li>Look for something similar to --proxy in python</li>
<li>Trying to add the proxy configuration described in one of the solutions mentioned earlier in my setup.py (which is add to the description of this problem)</li>
<li>Tried and successfully downloaded a couple of modules with pip --proxy (this is my current not-so-good-solution)</li>
<li>Messing with the python configuration files in the virtualenv in hope of find some proxy config</li>
</ul>

<p>My setup.py file looks like this:</p>

<pre><code>from setuptools import setup, find_packages
import requests

with open('development.txt') as file:
    install_requires = file.readlines()

with open('development_test.txt') as file_test:
    test_requires = file_test.readlines()

setup(
    name="my_project",
    version="1.0.0-SNAPSHOT",
    packages=find_packages(),
    install_requires=install_requires,
    test_suite="nose.collector",
    tests_require=test_requires,
)


proxies = {
  "http": "http://proxy.myproxy.com:3333",
  "https": "http://proxy.myproxy.com:3333",
}

# not sure what goes here... tried a few things but nothing happend

requests.get("https://pypi.python.org", proxies=proxies)
</code></pre>

<p>I'll try any suggestion, any help appreciated.
Thanks</p>