<div dir="ltr">On 21 August 2013 13:59, Oscar Benjamin <span dir="ltr"><<a href="mailto:oscar.j.benjamin@gmail.com" target="_blank">oscar.j.benjamin@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is the first time that I've tested using wheels and I have a<br>
couple of questions.<br>
<br>
Here's what I did (is this right?):<br>
<br>
$ cat spam.py<br>
# spam.py<br>
print('running spam from:', __file__)<br>
$ cat setup.py<br>
from setuptools import setup<br>
<br>
setup(name='spam',<br>
      version='1.0',<br>
      py_modules=['spam'])<br>
<br>
$ python setup.py bdist_wheel<br>
running bdist_wheel<br>
    ...<br>
creating build\bdist.win32\wheel\spam-1.0.dist-info\WHEEL<br>
$ ls<br>
build  dist  setup.py  spam.egg-info  spam.py<br>
$ ls dist/<br>
spam-1.0-py27-none-any.whl<br>
<br>
Okay, so far so good. I have the wheel and everything makes sense.</blockquote><div><br></div><div style>Looks good. You might want to add the (undocumented) universal flag to setup.cfg, as your wheel is Python only and works for Python 2 and 3, and so not version-specific.</div>
<div style><br></div><div style>setup.cfg:</div><div style><br></div><div style>[wheel]</div><div style>universal=1</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 Now<br>
I want to test installing it:<br>
<br>
$ wheel install --wheel-dir=./dist/ spam<br>
<br>
The line above gives no output. I expect something like 'installing<br>
spam... installed.'. It also ran so quickly that I thought that<br>
nothing had happened.<br>
<br>
A quick check reveals that the module was installed:<br>
<br>
$ cd ~<br>
$ python -m spam<br>
('running spam from:', 'q:\\tools\\Python27\\lib\\site-packages\\spam.py')<br>
$ pip list | grep spam<br>
spam (1.0)<br></blockquote><div><br></div><div style>Looks good. I thought wheel install gave some progress output, but it's a long time since I used it and I may be misremembering. You can also use pip install --use-wheel if you prefer (assuming you have pip 1.4+)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So now how do I uninstall it?<br>
<br>
$ pip uninstall spam<br>
Can't uninstall 'spam'. No files were found to uninstall.<br>
<br>
The wheel command doesn't seem to have an uninstall option either<br></blockquote><div><br></div><div style>Odd. pip uninstall should work. Can you confirm your version of pip and wheel? And can you list the contents of the spam-1.0.dist-info directory in your site-packages?</div>
<div style><br></div><div style>Paul</div></div></div></div>