|
* gnu/packages/patches/trytond-add-egg-modules-to-path.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove patch.
* gnu/packages/tryton.scm (trytond): Update to 7.4.4.
[source]: Remove obsolete patch.
[build-system]: Use pyproject-build-system.
[arguments]: Disable two types of test.
[propagated-inputs]: Remove python-magic, python-psycopg2, and python-wrapt;
replace python-werkzeug-1.0 with python-werkzeug.
[native-inputs]: Remove python-mock; add python-pydot, python-pytest,
python-setuptools, python-wheel, and tzdata-for-tests.
Change-Id: I072565d0fc52a704729ea58de8990de5aee12831
|
|
For adding modules, trytond uses entry-points, anyhow relying on the
modules being named "trytond.modules.xxx" and being placed in the same
filesystem path as "trytond.modules".
The package "trytond.modules" is not a namespace module, anyhow trytond
modules must be sub-modules of "trytond.modules". This works well if all
packages are installed into the same filesystem path "…/trytond/modules":
The Python importer will find all sub_modules at this place.
Anyhow, in Guix, modules don't share the same filesystem path and the
Python importer will not find them.
Solution is to add all trytond module's locations to
"trytond.modules._path__". This will make "trytond.module" behave much
like a namespace module and the importer pick up the module.
* gnu/packages/patches/trytond-add-egg-modules-to-path.patch: New file.
* gnu/packages/tryton.scm (trytond): Use it.
* gnu/local.mk (dist_patch_DATA): Add it
|