-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Make SageNB use setuptools
instead of distutils
#7467
Comments
comment:1
This should do it. |
Attachment: trac_7467-setuptools.patch.gz Makes |
Attachment: trac_7467-setuptools.2.patch.gz Added necessary .hgignore lines. |
Author: Tim Dumol |
comment:2
What are your thoughts about ? I found these links at Tools of the Modern Python Hacker: Virtualenv, Fabric and Pip. |
comment:3
Replying to @qed777:
These tools are orthogonal to usage of I personally make use of Virtualenv and Pip all the time for deployment. They're very useful for keeping one's site-packages clean. |
comment:4
Thanks for the clarification. What if we use pip (i.e., Disclaimer: I'm not familiar with On #7447: Can we query the installed version of a package with |
comment:6
Replying to @TimDumol:
Sorry, I meant |
comment:7
Replying to @qed777:
Wow, that feature's new. I don't see why not, although it would mean adding another package to Sage. |
comment:8
I get sage: from pkg_resources import Requirement, working_set
sage: working_set.find(Requirement.parse('sagenb')).version
AttributeError: 'NoneType' object has no attribute 'version' On using pip: We could just add |
comment:9
Replying to @qed777:
I believe detection of version using |
comment:10
OK, or pip, I suppose. Thanks. I'll put a note at #7447. |
comment:11
Although I'm not very familar with |
Reviewer: Mitesh Patel |
comment:13
+1! |
Currently, SageNB makes use of
distutils
. The standard method of package distribution, though, is setuptools. This has several advantages, the foremost being asetup.py develop
command, which bypasses the need to reinstall the package in order to propagate a change, as well as the ability to upload the package to PyPI with a single command. There is also additional functionality regards packaging, etc.CC: @qed777 @williamstein
Component: notebook
Author: Tim Dumol
Reviewer: Mitesh Patel
Issue created by migration from https://trac.sagemath.org/ticket/7467
The text was updated successfully, but these errors were encountered: