Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
virtualenv dependent install path and Python 2.6 inclusion of importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin M. Roy committed Aug 28, 2013
1 parent 4a85aa9 commit b6fe279
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
@@ -1,15 +1,20 @@
import os
from platform import python_version_tuple
from setuptools import setup
import sys

requirements = ['helper', 'pyyaml', 'tornado>=3.0']
test_requirements = ['mock', 'nose']
(major, minor, rev) = python_version_tuple()
if float('%s.%s' % (major, minor)) < 2.7:
requirements.append('importlib')
test_requirements.append('unittest2')

# Build the path to install the templates, example config and static files
base_path = '/usr/local/share/tinman'
if hasattr(sys, 'real_prefix'):
base_path = 'share/tinman'
else:
base_path = '/usr/share/tinman'

data_files = {'%s/' % base_path: ['README.md', 'etc/example.yaml'],
'%s/init.d/' % base_path: ['etc/init.d/tinman'],
Expand Down

0 comments on commit b6fe279

Please sign in to comment.