Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip uninstall does not remove symlinks #14

Closed
greenpau opened this issue Jun 30, 2018 · 0 comments
Closed

pip uninstall does not remove symlinks #14

greenpau opened this issue Jun 30, 2018 · 0 comments

Comments

@greenpau
Copy link
Owner

greenpau commented Jun 30, 2018

When running the setup.py uninstall, the symlinks to ansible are getting removed properly:

# python setup.py uninstall
running uninstall
[INFO] deleted '/usr/lib/python2.7/site-packages/ndmtk'
[INFO] deleted '/usr/lib/python2.7/site-packages/ndmtk-0.1.9-py2.7.egg-info'

However, when using pip, the symlinks stay:

# pip uninstall ndmtk
Uninstalling ndmtk-0.1.9:
  Would remove:
    /usr/lib/python2.7/site-packages/ndmtk
    /usr/lib/python2.7/site-packages/ndmtk-0.1.9-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled ndmtk-0.1.9

# find /usr/lib/python2.7/site-packages | grep ndmtk
/usr/lib/python2.7/site-packages/ansible/plugins/action/ndmtk.py
/usr/lib/python2.7/site-packages/ansible/plugins/callback/ndmtk.py

The setup.py needs refactoring. Specifically, pip should remove the following files:

unlink /usr/lib/python2.7/site-packages/ansible/plugins/action/ndmtk.py
unlink /usr/lib/python2.7/site-packages/ansible/plugins/callback/ndmtk.py
rm -rf /usr/lib/python2.7/site-packages/ansible/plugins/action/ndmtk.pyc
rm -rf /usr/lib/python2.7/site-packages/ansible/plugins/callback/ndmtk.pyc
greenpau added a commit that referenced this issue Jun 30, 2018
More info: This commit adds the files necessary for the data collection
from Cisco UCS switches. Additionally, it makes this Ansible module
compatible with Ansible 2.6.0.

Resolves: #12, #13, #14
greenpau added a commit that referenced this issue Jun 30, 2018
More info: This commit adds the files necessary for the data collection
from Cisco UCS switches. Additionally, it makes this Ansible module
compatible with Ansible 2.6.0.

Resolves: #12, #13, #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant