From e929745ebf91987a7f3e79f7a1e79b20f905ec6e Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 16 Sep 2013 14:02:55 +0200 Subject: [PATCH] corrections in setup.py --- setup.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 1b73eea..1e67a75 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- from distutils.core import setup -from os.path import dirname, abspath, join, normpath, isdir, basename +from os.path import dirname, abspath, join, normpath, isdir from os import listdir @@ -9,15 +9,16 @@ def fetch_version(): """Get version from version.in""" return file('VERSION', 'r').readline().strip() + def return_storages(): "returns all the storage plugins that are living in tiramisu/storage" here = dirname(abspath(__file__)) storages_path = normpath(join(here, 'tiramisu', 'storage')) - dir_content = [ content for content in listdir(storages_path) \ - if not content =='__pycache__'] - storages = filter(isdir, [join(storages_path, content) \ + dir_content = [content for content in listdir(storages_path) + if not content == '__pycache__'] + storages = filter(isdir, [join(storages_path, content) for content in dir_content]) - storage_list = [basename(storage) for storage in storages] + storage_list = ['.'.join(storage.split('/')[-3:]) for storage in storages] return storage_list packages = ['tiramisu', 'tiramisu.storage'] @@ -58,6 +59,6 @@ producing flexible and fast options access. This version requires Python 2.6 or later. -""" +""", packages=packages )