Skip to content

Commit

Permalink
Remove bootstrap.py
Browse files Browse the repository at this point in the history
It leads to update loops when running `bin/buildout -n` for the first time.
When omitting `-n` the setuptools version might be too old.
  • Loading branch information
Michael Howitz committed Oct 5, 2018
1 parent 854a7c5 commit c6c7e49
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 219 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Breaking changes

- Remove the ``OFS.History`` module which contained only BBB code since 4.0a2.

- Remove `bootstrap.py`. To install Zope via `zc.buildout` install the
`zc.buildout` package in a virtual environment at first.

New features
++++++++++++

Expand Down
210 changes: 0 additions & 210 deletions bootstrap.py

This file was deleted.

21 changes: 15 additions & 6 deletions docs/INSTALL-buildout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ available:
* 2.7
* 3.5
* 3.6
* 3.7

- Zope needs the Python ``zlib`` module to be importable. If you are
building your own Python from source, please be sure that you have the
Expand Down Expand Up @@ -55,21 +56,29 @@ steps:

- Run the buildout

You may need to replace the used Zope version used in the examples (4.0b6) with
he one you actually want to install.

On Linux, this can be done as follows::

$ wget https://pypi.python.org/packages/source/Z/Zope/Zope-<Zope version>.tar.gz
$ wget https://pypi.python.org/packages/source/Z/Zope/Zope-4.0b6.tar.gz
$ tar xfvz Zope-<Zope version>.tar.gz
$ cd Zope-<Zope version>
$ /path/to/your/python bootstrap.py
$ bin/buildout -n
$ python3.7 -m venv .
$ bin/pip install -U pip zc.buildout
$ bin/buildout

.. note::
Instead of using the buildout configuration shipping with Zope itself, you
can also start with a minimum configuration like this::

When using Python 2.7 instead of calling ``python3.7 -m venv .`` you have to
install `virtualenv` and then call ``virtualenv-2.7 .``.

Instead of using the buildout configuration shipping with Zope itself, you
can also start with a minimum configuration like this::

[buildout]
extends =
https://zopefoundation.github.io/Zope/releases/master/versions-prod.cfg
https://zopefoundation.github.io/Zope/releases/4.0b6/versions-prod.cfg
parts =
zopescripts
zopepy
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[flake8]
ignore = C901,N801,N802,N803,N805,N806,N812,E301
exclude = bootstrap.py

[bdist_wheel]
universal = 1
Expand Down
2 changes: 0 additions & 2 deletions versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pyparsing = 2.2.0
python-gettext = 3.0
requests = 2.18.4
requests-toolbelt = 0.8.0
setuptools = 39.1.0
snowballstemmer = 1.2.1
Sphinx = 1.7.4
sphinxcontrib-websupport = 1.0.1
Expand All @@ -47,7 +46,6 @@ urllib3 = 1.22
virtualenv = 16.0.0
wheel = 0.31.1
z3c.checkversions = 1.0
zc.buildout = 2.11.4
zc.recipe.egg = 2.0.5
zc.recipe.testrunner = 2.0.0
zest.releaser = 6.15.0

0 comments on commit c6c7e49

Please sign in to comment.