Updated setup

Change-Id: I5df3baddca141e978df7db142698fc01d8635b8c
This commit is contained in:
Jose Idar 2015-10-29 15:58:44 -05:00
parent 8e83dd5b7f
commit 1d08989320
1 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,9 @@ import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
# Establish a consistent base directory relative to the setup.py file
os.chdir(os.path.abspath(os.path.dirname(__file__)))
# tox integration
class Tox(TestCommand):
@ -35,9 +38,9 @@ class Tox(TestCommand):
# Package the plugin cache as package data
plugins = []
dir_path = os.path.join(os.path.dirname(__file__), 'cafe', 'plugins')
dir_path = os.path.join('cafe', 'plugins')
for dirpath, directories, filenames in os.walk(dir_path):
dirpath = dirpath.lstrip('cafe/')
dirpath = dirpath.lstrip('cafe{0}'.format(os.path.sep))
for f in filenames:
if f.endswith('.pyc'):
continue