Skip to content
Permalink
Browse files

fix(setup): remove unused dependencies

  • Loading branch information...
hanxiao committed Aug 13, 2019
1 parent 1328172 commit d7b42d3957fa0395ea1ac34da188bf93d348990c
Showing with 5 additions and 28 deletions.
  1. +0 −21 Dockerfile
  2. +1 −1 Dockerfiles/alpine.Dockerfile
  3. +1 −1 Dockerfiles/buster.Dockerfile
  4. +1 −1 Dockerfiles/ubuntu.Dockerfile
  5. +1 −1 gnes/cli/parser.py
  6. +0 −2 gnes/composer/flask.py
  7. +1 −1 setup.py

This file was deleted.

@@ -10,7 +10,7 @@ RUN apk add --no-cache \
musl-dev python3-dev py-pgen cython openblas-dev && \
apk add --no-cache libstdc++ openblas libzmq && \
ln -s locale.h /usr/include/xlocale.h && \
pip install . --no-cache-dir --compile && \
pip install .[http] --no-cache-dir --compile && \
find /usr/lib/python3.7/ -name 'tests' -exec rm -r '{}' + && \
find /usr/lib/python3.7/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; && \
rm /usr/include/xlocale.h && \
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
python3-dev libopenblas-dev && \
ln -s locale.h /usr/include/xlocale.h && \
pip install . --no-cache-dir --compile && \
pip install .[http] --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && \
rm /usr/include/xlocale.h
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential python3-dev python3-pip python3-setuptools libopenblas-dev && \
export LC_ALL=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_CTYPE=en_US.UTF-8 && \
ln -s /usr/bin/python3 python && \
pip3 install . --no-cache-dir --compile && \
pip3 install .[http] --no-cache-dir --compile && \
rm -rf /tmp/* && rm -rf /gnes && \
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*

@@ -87,7 +87,7 @@ def set_composer_parser(parser=None):
parser.add_argument('--mermaid_leftright', action='store_true', default=False,
help='showing the flow in left-to-right manner rather than top down')
parser.add_argument('--docker_img', type=str,
default='gnes/gnes:latest',
default='gnes/gnes:alpine-latest',
help='the docker image used in Docker Swarm & Kubernetes')
return parser

@@ -27,7 +27,6 @@ def __init__(self, args):
def _create_flask_app(self):
try:
from flask import Flask, request
from flask_compress import Compress
except ImportError:
raise ImportError('Flask or its dependencies are not fully installed, '
'they are required for serving HTTP requests.'
@@ -69,7 +68,6 @@ def _regenerate():
self.logger.error(e)
return '<h1>Bad YAML input</h1> please kindly check the format, indent and content of your YAML file!', 400

Compress().init_app(app)
return app

def run(self):
@@ -51,7 +51,7 @@
'vision': ['opencv-python>=4.0.0', 'imagehash>=4.0'],
'leveldb': ['plyvel>=1.0.5'],
'test': ['pylint', 'memory_profiler>=0.55.0', 'psutil>=5.6.1', 'gputil>=1.4.0'],
'http': ['flask', 'flask-compress', 'flask-cors', 'flask-json', 'aiohttp==3.5.4'],
'http': ['flask', 'flask-compress', 'aiohttp==3.5.4'],
'onnx': ['onnxruntime'],
'librosa': ['librosa>=0.7.0'],
'scipy': ['scipy']

0 comments on commit d7b42d3

Please sign in to comment.
You can’t perform that action at this time.