corrections in setup.py
This commit is contained in:
parent
abbb7a274e
commit
e929745ebf
13
setup.py
13
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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user