mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 03:30:02 -03:30
convert py2 -> py3
This commit is contained in:
@@ -16,7 +16,6 @@ fi
|
||||
|
||||
#make awx-link
|
||||
python setup.py develop
|
||||
ln -s /awx_devel/tools/rdb.py /venv/awx/lib/python3.6/site-packages/rdb.py || true
|
||||
yes | cp -rf /awx_devel/tools/docker-compose/supervisor.conf /supervisor.conf
|
||||
|
||||
# AWX bootstrapping
|
||||
|
||||
@@ -147,14 +147,14 @@ def spread(n, m):
|
||||
ret = []
|
||||
# At least one in each slot, split up the rest exponentially so the first
|
||||
# buckets contain a lot of entries
|
||||
for i in xrange(m):
|
||||
for i in range(m):
|
||||
if n > 0:
|
||||
ret.append(1)
|
||||
n -= 1
|
||||
else:
|
||||
ret.append(0)
|
||||
|
||||
for i in xrange(m):
|
||||
for i in range(m):
|
||||
n_in_this_slot = n // 2
|
||||
n-= n_in_this_slot
|
||||
ret[i] += n_in_this_slot
|
||||
@@ -239,7 +239,7 @@ def make_the_data():
|
||||
|
||||
|
||||
print('# Creating %d organizations' % n_organizations)
|
||||
for i in xrange(n_organizations):
|
||||
for i in range(n_organizations):
|
||||
sys.stdout.write('\r%d ' % (i + 1))
|
||||
sys.stdout.flush()
|
||||
org, _ = Organization.objects.get_or_create(name='%s Organization %d' % (prefix, i))
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN yum -y localinstall http://download.postgresql.org/pub/repos/yum/9.4/redhat/
|
||||
RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
|
||||
|
||||
RUN yum -y update && yum -y install openssh-server ansible mg vim tmux \
|
||||
git2u-core mercurial subversion python36 python36-devel python-psycopg2 make postgresql \
|
||||
git2u-core mercurial subversion python-devel python36 python36-devel python-psycopg2 make postgresql \
|
||||
postgresql-devel nginx nodejs python-psutil libxml2-devel libxslt-devel \
|
||||
libstdc++.so.6 gcc cyrus-sasl-devel cyrus-sasl openldap-devel libffi-devel \
|
||||
xmlsec1-devel swig krb5-devel xmlsec1-openssl xmlsec1 \
|
||||
|
||||
Reference in New Issue
Block a user