[openstack-swift] remove more runtime python dependency checking

Pádraig Brady pbrady at fedoraproject.org
Fri Oct 18 11:36:12 UTC 2013


commit a4102ebf76c95dc9908f02a09f5c46eb3504b272
Author: Pádraig Brady <P at draigBrady.com>
Date:   Fri Oct 18 12:11:35 2013 +0100

    remove more runtime python dependency checking
    
    This caused swift services to fail (but exit 0),
    with error "xattr>=0.4"
    
    https://bugzilla.redhat.com/1020449

 openstack-swift.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/openstack-swift.spec b/openstack-swift.spec
index ce3c3aa..c4fb2fa 100644
--- a/openstack-swift.spec
+++ b/openstack-swift.spec
@@ -170,6 +170,10 @@ rm -rf swift.egg-info
 # let RPM handle deps
 sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
 
+# Remove the requirements file so that pbr hooks don't add it
+# to distutils requires_dist config
+rm -rf {test-,}requirements.txt
+
 # Remove dependency on pbr and set version as per rpm
 sed -i 's/%RPMVERSION%/%{version}/; s/%RPMRELEASE%/%{release}/' swift/__init__.py
 


More information about the scm-commits mailing list