mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
Updated to be compatible with Django 1.4.5, added tox settings for automated testing with Python 2.6/2.7 and Django 1.4/1.5.
This commit is contained in:
8
setup.py
8
setup.py
@@ -3,7 +3,7 @@
|
||||
# Copyright (c) 2013 AnsibleWorks, Inc.
|
||||
# All Rights Reserved.
|
||||
|
||||
import os, datetime, glob
|
||||
import os, datetime, glob, sys
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
from ansibleworks import __version__
|
||||
@@ -42,6 +42,12 @@ def proc_data_files(data_files):
|
||||
"""
|
||||
|
||||
result = []
|
||||
|
||||
# Ff running in a virtualenv, don't return data files that would install to
|
||||
# system paths (mainly useful for running tests via tox).
|
||||
if hasattr(sys, 'real_prefix'):
|
||||
return result
|
||||
|
||||
for dir,files in data_files:
|
||||
includes = []
|
||||
for item in files:
|
||||
|
||||
Reference in New Issue
Block a user