Test python package installation from local files
<p>I would like to start testing the installation of individual python packages (tar.gz, egg, wheel) before uploading to pypi.  That is, I'd like something like the following flow:</p>

<p>Build like this:</p>

<pre><code>cd /path/to/mypkg
python setup.py sdist bdist_egg bdist_wheel
</code></pre>

<p>Then perhaps in another terminal:</p>

<pre><code>pyvenv installtest
pip install /path/to/mypkg/dist/mypkg-0.1.2.tar.gz
</code></pre>

<p>pip doesn't permit installation from files (I think).</p>

<p>The closest I've found that doesn't quite work is:</p>

<pre><code>pip -v install --no-index --find-links /path/to/mkpkg/dist mypkg
</code></pre>

<p>In that case, it does discover packages in the directory, but seems to fail to install them. (That may be unrelated.)</p>

<p>I have seen mentions of <code>pip install -e &lt;path&gt;</code>, but that only works for paths to SCM installations; it doesn't work for an arbitrary python package tarball. </p>

<p>So, the question is: Is there a way to pip install packages from local files rather than by fetching from pypi?</p>