openfisca / openfisca-web-api

[DEPRECATED] Web API for OpenFisca
https://www.openfisca.fr/
GNU Affero General Public License v3.0
13 stars 11 forks source link

Add required files to build rpm with bdist_rpm #89

Closed pndsagora closed 7 years ago

pndsagora commented 7 years ago

Just include additional files to MANIFEST.in to be able to build rpm from git repo using

python setup.py bdist_rpm

EDIT: Connected to https://github.com/openfisca/openfisca-core/issues/461 — @MattiSG

cbenz commented 7 years ago

@pndsagora Don't know if you considered it, but you can also download OpenFisca packages from PyPI, copy them to your server in a directory, and ask pip to install packages from a custom wheels directory (pip install --use-wheel).

Cf Wheels doc

MattiSG commented 7 years ago

Closing since a simpler solution was found by updating setuptools to v34 🙂

cbenz commented 7 years ago

@tchabaud I don't fully understand your solution. I understood that you ended up building RPM packages after an upgrade of setuptools.

I did:

python setup.py compile_catalog
python setup.py bdist_rpm

I examined the content of the OpenFisca-Web-API RPM package and noticed that it only contains the source files of the web API.

May I ask you to tell me more about:

Thanks!

MattiSG commented 7 years ago

Documented in https://github.com/openfisca/openfisca-gitbook/pull/38.

t-chab commented 7 years ago

@cbenz It was a quick'n'dirty workaround for us, because the dependencies were already installed manually, so install 3 rpm with

rpm -i

worked for us.

cbenz commented 7 years ago

OK @tchabaud thanks for your answer!

t-chab commented 7 years ago

gif