From 0b5735cb3d038cce7234c82da12d1d0b1e130829 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 11 Mar 2013 18:07:37 -0400 Subject: [PATCH] Just use d2to1 via hooks mechanism. It turns out we can just have only our code and use d2to1 directly. Change-Id: I4700ad51bf4377797ede55d3cf5ec09f424874ed --- setup.cfg | 8 +++----- setup.py | 10 +++------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/setup.cfg b/setup.cfg index fb944b6..ae4f243 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,8 +22,6 @@ packages = namespace_packages = oslo -[entry_points] -distutils.setup_keywords = - oslo_packaging = oslo.packaging.core:setup -oslo.packaging.attr_filters = - oslo_packaging = oslo.packaging.packaging:attr_filter +[global] +setup-hooks = + oslo.packaging.hooks.setup_hook diff --git a/setup.py b/setup.py index 5cd6208..59ea051 100755 --- a/setup.py +++ b/setup.py @@ -16,10 +16,6 @@ import setuptools -# See setup.cfg for the project metadata. -from oslo.packaging import util - - -# Use our internals directly, so that we don't chicken-and-egg needing to -# install an entry point before using ourself. -setuptools.setup(**util.filtered_args()) +setuptools.setup( + setup_requires = ['d2to1'], + d2to1 = True)