Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Conversation

cgwalters
Copy link
Member

The earlier 58a6e0e and later
455fc84 both break if the atomic
package is not actually installed on the system - as will be the case
with mock/pbuilder style builds.

It looks like OpenStack uses https://pypi.python.org/pypi/pbr which
presumably solves this problem. I however am not super interested
right now in diving into that...I just want the thing to build.

So let's just hardcode the version number in two places for now.
Anyone who wants to improve this should probably look at PBR or
something other projects do.

@rhatdan
Copy link
Member

rhatdan commented Aug 13, 2015

@rtnpro thoughts.

@rhatdan
Copy link
Member

rhatdan commented Aug 13, 2015

@cgwalters change to use 1.2 and then I will merge for now.

The earlier 58a6e0e and later
455fc84 both break if the atomic
package is not actually installed on the system - as will be the case
with `mock/pbuilder` style builds.

It looks like OpenStack uses https://pypi.python.org/pypi/pbr which
presumably solves this problem.  I however am not super interested
right now in diving into that...I just want the thing to build.

Ansible just inserts the current dir in `sys.path`, which seems like a
simple hack, so let's do that.
@cgwalters cgwalters force-pushed the version-when-uninstalled branch from d45c32d to 1068788 Compare August 13, 2015 15:52
@cgwalters
Copy link
Member Author

⬆️ reworks the patch to do what Ansible does.

@cgwalters
Copy link
Member Author

Until this lands I have frozen my internal CI/CD builds at 9186097

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgwalters Please remove the unused import: pkg_resources

@rtnpro
Copy link
Contributor

rtnpro commented Aug 14, 2015

@rhatdan @cgwalters Looks good to me, apart from the unused import of pkg_resources. Once this is fixed, it is good to merge, 👍

rhatdan added a commit that referenced this pull request Aug 14, 2015
build-sys: Avoid self-dependency in setup.py
@rhatdan rhatdan merged commit 2b07480 into projectatomic:master Aug 14, 2015
@rhatdan
Copy link
Member

rhatdan commented Aug 14, 2015

I will remove the pkg_resources.

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

Successfully merging this pull request may close these issues.

3 participants