What would be the best practice for upgrading Products.ZMySQLDA-5.0 to Products.ZMySQLDA-6.0 in a zop5.11.1 instance if the product was installed with buildout.cfg? Thanks for the hints.
Giampiero Benvenuti via Plone Community wrote at 2024-12-17 14:59 +0000:
...
What would be the best practice for upgrading Products.ZMySQLDA-5.0 to Products.ZMySQLDA-6.0 in a zop5.11.1 instance if the product was installed with buildout.cfg? Thanks for the hints.
Typically, buildout.cfg
has a section versions
with
the so called "version pin"s. A "version pin" specifies a
specific version to be used for the package.
Should your buildout configuration file not yet have such a section,
you can create one.
If it has such a section and it contains already a pin for
Products.ZMySQLDA
, you change the pin. Otherwise, you add it.
Thanks Dieter, it worked just fine. Now, what am I doing with the line "Products.ZMySQLDA" in the eggs list in my buildout.cfg? Should I remove the line? Also, what about the product "Products.ZMySQLDA-5.0-py3.11.egg " in the eggs directory? Should I just remove it as well? Thanks for your help.
the entry in eggs=...
is the flag for "which addons should be use"
the version pin in buildout is only a flag for "which version should be downloaded". Short: you need both entries.
you can remove the egg after aou running the buildout and the new package is installed.
Giampiero Benvenuti via Plone Community wrote at 2024-12-18 12:58 +0000:
Thanks Dieter, it worked just fine. Now, what am I doing with the line "Products.ZMySQLDA" in the eggs list in my buildout.cfg? Should I remove the line? Also, what about the product "Products.ZMySQLDA-5.0-py3.11.egg " in the eggs directory? Should I just remove it as well? Thanks for your help.
When you run [bin/]buildout install
a set of scripts is generated with
access to buildout installed packages. The eggs
option controls
which packages are made available.
Thus, you keep the Products.ZMySQLDA
in your "eggs" definition.
You can remove remove "Products.ZMySQLDA-5.0-py3.11.egg"
(to save disk space). However, this is not necessary
(the newly generated scripts know which package version from
the eggs
directory should be used).
You might read the zc.buildout
documentation (--> PyPI)
to learn more about buildout
and its configuration.
Thanks Jan!
Thanks Dieter!