Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PythonRecipe can't modify attributes #145

Open
karnauskas opened this issue Dec 29, 2015 · 4 comments
Open

PythonRecipe can't modify attributes #145

karnauskas opened this issue Dec 29, 2015 · 4 comments

Comments

@karnauskas
Copy link

I'm trying to generate rpm package from Python module but I can't modify auto generated dependencies.

@bernd
Copy link
Owner

bernd commented Apr 2, 2016

Can you show me an example recipe and describe the problem you have in more detail? Thanks!

@karnauskas
Copy link
Author

Eg I have something like this:

class Ansible < FPM::Cookery::PythonRecipe
    name "ansible"
    version "2.0.1.0"
end

Which will generate rpm where it depends on following:

rpm -qp --requires ./pkg/python-ansible-2.0.1.0-1.noarch.rpm 
python-jinja2
python-paramiko
python-pycrypto >= 2.6
python-pyyaml
python-setuptools
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

On distribution I have package "python-crypto" which is pretty much as the the one "python-pycrypto".

How to modify dependencies that generated package would depend on python-crypto but not on python-pycrypto?

@tomeon
Copy link
Contributor

tomeon commented Aug 14, 2016

@nkts -- might not be what you want, as it means you'll have to specify all dependencies yourself, but maybe:

class Ansible < FPM::Cookery::PythonRecipe
  name "ansible"
  version "2.0.1.0"
  fpm_attributes :no_auto_depends? => true
end

@brejoc
Copy link

brejoc commented Apr 12, 2017

This issue is a bit old, but anyway. There is no other way to do that. Ansible needs to define dependencies with package names used on pypi. This can differ from the package names used in the distributions. This is why you have to provide the dependencies yourself in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants