Skip to content

remove install_ext#8763

Closed
Achifaifa wants to merge 9 commits into
ipython:masterfrom
Achifaifa:master
Closed

remove install_ext#8763
Achifaifa wants to merge 9 commits into
ipython:masterfrom
Achifaifa:master

Conversation

@Achifaifa
Copy link
Copy Markdown

Deleted the function, checked for function references through code and tests (nothing found) and added information of the changes to the /docs/source/whatsnew/pr/ folder.

Not sure if the format used in the change docs is the correct one, the examples I checked were empty files, please check that before merging.

closes #8634

@Achifaifa
Copy link
Copy Markdown
Author

OK, I've checked the tests in the IPython folder and didn't find any calls to install_ext in them, so I'm not sure where that call travis is making is or how to remove it. Working on it.

@minrk minrk added this to the 5.0 milestone Aug 23, 2015
@minrk minrk changed the title deleted install_ext as requested in #8634 remove install_ext Aug 23, 2015
@Achifaifa
Copy link
Copy Markdown
Author

Right! I missed that one. There is a extension test function that depended on install_ext. I've commented it out instead of deleting it just in case someone needs to reuse that code, since it didn't seem totally expendable.

And sorry about the mess with the rst files, took me a while to figure those out.

@jankatins
Copy link
Copy Markdown
Contributor

What is the replacement story? Build a package for each 10-liner? Would it be possible to add a ipython-contrib/ipython-extensions repo (with some guidelines what to add), which is released every so often?

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Sep 8, 2015

What is the replacement story? Build a package for each 10-liner?

Yes, it's not that hard :

https://github.com/Carreau/pip_magic/blob/master/pip_magic/__init__.py

Package with flit that make publishing packages really easy.

Would it be possible to add a ipython-contrib/ipython-extensions

ipython-contrib is not an official IPython repo, but I thing the people there wouldn't say no.

It would be released as often as the maintainers there would release, we could even set up travis to release really often.

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 8, 2016

@Achifaifa we are now on the 5.0 branch, do you want to rebase, so that we can merge. You also directly delete the test instead of just commenting.

@Achifaifa
Copy link
Copy Markdown
Author

Oops, missed the notification and didn't read this for some time.

_ip.magic("unload_ext daft_extension")
assert 'arq' not in _ip.user_ns
finally:
sys.path.remove(daft_path)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete this test? It doesn't seem to use install_ext at all.

@Achifaifa
Copy link
Copy Markdown
Author

I removed the function I commented in a previous commit but apparently someone edited it somewhere along the way to not use install_ext, sorry about that.

Achifaifa@fda188e

@takluyver
Copy link
Copy Markdown
Member

Aha, gotcha. The code as it stands reverts the test to the version that did use %install_ext - I'm going to rebase this, clean it up and merge manually.

@Achifaifa
Copy link
Copy Markdown
Author

Oh great, thank you. I've been trying to do it myself but I've just been running around like a chicken in detached head mode :(

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 13, 2016

Oops, missed the notification and didn't read this for some time.

No problem, we have plenty of time.

apparently someone edited it somewhere along the way to not use install_ext, sorry about that.

That SO was likely me to avoid deprecation warnings of using install ext :-(

@takluyver said :

I'm going to rebase this, clean it up and merge manually.

FYI that this is because we attempt to avoid merge from the master branch usually,
but rebasing can be a pain to do. Thanks for doing it !

@takluyver
Copy link
Copy Markdown
Member

Merged as d953069 . Thanks @Achifaifa!

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

Successfully merging this pull request may close these issues.

remove %install_ext

5 participants