@@ -5,17 +5,23 @@ This command should install :mod:`pymbolic`::
5
5
6
6
pip install pymbolic
7
7
8
- You may need to run this with :command: `sudo `.
9
- If you don't already have `pip <https://pypi.python. org/pypi /pip >`_ ,
8
+ You may need to run this with :command: `sudo ` if you are not in a virtual environment
9
+ (not recommended). If you don't already have `pip <https://pypi.org/project /pip >`__ ,
10
10
run this beforehand::
11
11
12
- curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
13
- python get-pip.py
12
+ python -m ensurepip
14
13
15
- For a more manual installation, download the source, unpack it,
16
- and say::
14
+ For a more manual installation, download the source, unpack it, and run::
17
15
18
- python setup.py install
16
+ pip install .
17
+
18
+ This should also install all the required dependencies (see ``pyproject.toml ``
19
+ for a complete list).
20
+
21
+ For development, you may want to install in `editable mode
22
+ <https://setuptools.pypa.io/en/latest/userguide/development_mode.html> `__::
23
+
24
+ pip install --no-build-isolation --editable .[test]
19
25
20
26
Why pymbolic when there's already sympy?
21
27
========================================
@@ -65,10 +71,10 @@ At any rate, to answer your question, here goes:
65
71
66
72
This part is a bit of a red herring though, since this can be
67
73
implemented for sympy (and, in fact, `I have
68
- <https://github.com/inducer/pymbolic/blob/master /pymbolic/sympy_interface .py#L71> `_ ).
74
+ <https://github.com/inducer/pymbolic/blob/main /pymbolic/interop/sympy .py#L47> `__ ).
69
75
Also, I noticed that sympy's codegen module implements something similar (e.g.
70
76
`here
71
- <https://github.com/sympy/sympy/blob/master/sympy/printing/fcode .py#L174> `_ ).
77
+ <https://github.com/sympy/sympy/blob/master/sympy/printing/fortran .py#L70> `__ ).
72
78
The remaining issue is that most of sympy's behaviors aren't available to
73
79
extend in this style.
74
80
@@ -98,7 +104,7 @@ Version 2015.3
98
104
.. note ::
99
105
100
106
This version is currently under development. You can get snapshots from
101
- Pymbolic's `git repository <https://github.com/inducer/pymbolic >`_
107
+ Pymbolic's `git repository <https://github.com/inducer/pymbolic >`__
102
108
103
109
* Add :mod: `pymbolic.geometric_algebra `.
104
110
* First documented version.
@@ -133,19 +139,13 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
133
139
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
134
140
OTHER DEALINGS IN THE SOFTWARE.
135
141
136
- Frequently Asked Questions
137
- ==========================
138
-
139
- The FAQ is maintained collaboratively on the
140
- `Wiki FAQ page <http://wiki.tiker.net/Pymbolic/FrequentlyAskedQuestions >`_.
141
-
142
142
Glossary
143
143
========
144
144
145
145
.. glossary ::
146
146
147
147
mix-in
148
- See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin >`_ .
148
+ See `Wikipedia article <https://en.wikipedia.org/wiki/Mixin >`__ .
149
149
150
150
Be sure to mention the mix-in before the base classe being mixed in the
151
151
list of base classes. This way, the mix-in can override base class
0 commit comments