| 15 | |

| 16 | This defines '''milestone 1'''. `sagelib` is now a well-behaved Python package. It can be built and installed as follows (without invoking `sage -sh`): |

| 17 | {{{ |

| 18 | export SAGE_LOCAL=/path/to/local/hierarchy/populated/by/sage/distribution |

| 19 | export SAGE_PKGS=/path/to/sage/distribution/source/directory/build/pkgs |

| 20 | python setup.py install # or pip install . |

| 21 | }}} |

| 22 | |

| 23 | Next steps: |

| 24 | - Remove the dependency on SAGE_PKGS (#20382, ...) |

| 25 | |

| 26 | This defines '''milestone 2'''. `sagelib` can now be built and installed as follows (without invoking `sage -sh`): |

| 27 | {{{ |

| 28 | export SAGE_LOCAL=/path/to/local/hierarchy/populated/by/sage/distribution |

| 29 | python setup.py install # or pip install . |

| 30 | }}} |

| 31 | |

| 32 | Next steps: |

| 33 | |

| 34 | - ... |