mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 03:49:10 +02:00
Drop python 2 references
With Python 2.x going out of support [1], remove remaining references to it. [1] https://www.python.org/dev/peps/pep-0373/ Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
This commit is contained in:
parent
c9f16d253e
commit
f3202c38e6
|
@ -21,10 +21,6 @@ RUN apt-get update \
|
|||
g++ \
|
||||
gcc \
|
||||
make \
|
||||
python-pip \
|
||||
python-mysqldb \
|
||||
python-dev \
|
||||
python-imaging \
|
||||
python3-pip \
|
||||
python3-mysqldb \
|
||||
python3-dev \
|
||||
|
@ -44,11 +40,9 @@ RUN apt-get update \
|
|||
&& locale-gen en_US.UTF-8 \
|
||||
&& update-locale \
|
||||
&& pip3 install gunicorn \
|
||||
&& pip install setuptools \
|
||||
&& pip3 install setuptools \
|
||||
&& pip install -r /requirements.txt \
|
||||
&& pip3 install -r /requirements.txt \
|
||||
&& apt-get purge -y autoconf g++ make python-dev python3-dev libjpeg-dev libmariadbclient-dev \
|
||||
&& apt-get purge -y autoconf g++ make python3-dev libjpeg-dev libmariadbclient-dev \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& apt-get clean
|
||||
|
|
|
@ -22,9 +22,8 @@ In order to run this application standalone, you will need:
|
|||
have to have Django installed, have the same or similar configuration
|
||||
in settings.py and have access to the database used by the web
|
||||
application):
|
||||
* Python 2.7.6+ / Python 3.4+ to match with the version of BitBake
|
||||
for the OpenEmbedded branch being parsed (for modern versions it's
|
||||
Python 3.)
|
||||
* Python 3.4+ to match with the version of BitBake for the OpenEmbedded
|
||||
branch being parsed.
|
||||
* Python dependencies as per requirements.txt (we still need Django
|
||||
etc. here since we interact with the database through Django's ORM.)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# layerindex-web - bulk change implementation
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Updates site name in Django database
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Update cover info for OE-Classic / other distro recipes in OE layer index database
|
||||
#
|
||||
|
|
|
@ -454,8 +454,8 @@ def main():
|
|||
|
||||
if not options.nocheckout:
|
||||
# We need to check this out because we're using stuff from bb.utils
|
||||
# below, and if we don't it might be a python 2 revision which would
|
||||
# be an issue
|
||||
# below, and if we don't then whatever is currently checked out might
|
||||
# be something incompatible
|
||||
utils.checkout_repo(bitbakepath, safe_bitbake_branch, logger=logger)
|
||||
|
||||
deps_dict = utils.explode_dep_versions2(bitbakepath, deps)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Update layer index database for a single layer
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user