Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Help solving a CI issue
by
Holger Brunn
> I need to install the version in this > repo https://github.com/reingart/pyafipws - branch py3k and also execute > this commands: you can use external_dependencies_override (cf https://pypi.org/project/ setuptools-odoo/#controlling-setuptools-odoo-behaviour) where you can do something like pyafipws@https://github.com/reingart/pyafipws/archive/py3k.zip (cf https://pip.pypa.io/en/stable/reference/requirement-specifiers/ #requirement-specifiers) > Go to installation directory of PyAFIPWS: > cd /usr/local/lib/python3/dist-packages/pyafipws > Note: Replace python3 by the python version in the system (like python3.9) > Create a folder with the name cache: > sudo mkdir cache > Change permission of folder: > sudo chmod -R 777 cache > * extracted from one of our local wikis I'd strongly suggest to fix this in the python package itself, this will make stuff better for anyone involved anyways. Having a cache directory there is quite wrong, this should go to /var/cache or ~/.cache (cf https:// en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard), and you can create this for the global case (local can just create it on first run) during installation by overriding the install command class passing a custom cmdclass (cf https:// docs.python.org/3/distutils/extending.html#integrating-new-commands) dict. -- Your partner for the hard Odoo problems https://hunki-enterprises.com