Skip to content

Commit

Permalink
bugfix/fix pip build command (PaddlePaddle#67)
Browse files Browse the repository at this point in the history
* change paths

* add setup

* add packages

* update

* install ready

* restore mock

* restore graph_test.sh

* move visualdl.py to visualdl as a script

* fix setup

* remove onnx_pb2.py

* fix server_test

* add package into tests.sh

* add protobuf-compiler for package

* recover .git

* change script bin visualdl_bin to visualDL

* add npm cache

* avoid build_frontend in travis-CI

* avoid frontend build in travis-CI

* add pips

* restore protobuf mannul installation

* install protobuf

* fix package

* fix tool
  • Loading branch information
Superjomn authored and jacquesqiao committed Jan 8, 2018
1 parent 5272ee0 commit 150908e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions visualdl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from __future__ import absolute_import

import os

from .python.storage import *

ROOT = os.path.dirname(__file__)
10 changes: 5 additions & 5 deletions visualdl/server/visualDL
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ from optparse import OptionParser
from flask import (Flask, Response, redirect, request, send_file,
send_from_directory)

import visualdl
import visualdl.server
from visualdl.server import graph, lib
from visualdl.server import log as logger
from visualdl.server.log import logger
from visualdl.server.mock import data as mock_data
from visualdl.server.mock import data as mock_tags
from visualdl.python.storage import (LogWriter, LogReader)



app = Flask(__name__, static_url_path="")
# set static expires in a short time to reduce browser's memory usage.
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 30

SERVER_DIR = os.path.join(visualdl.ROOT, 'server')

def option_parser():
"""
Expand Down Expand Up @@ -51,8 +51,8 @@ def option_parser():

options, args = option_parser()
server_path = os.path.abspath(os.path.dirname(sys.argv[0]))
static_file_path = "./frontend/dist/"
mock_data_path = "./mock_data/"
static_file_path = os.path.join(SERVER_DIR, "./dist")
mock_data_path = os.path.join(SERVER_DIR, "./mock_data/")

log_reader = LogReader(options.logdir)

Expand Down

0 comments on commit 150908e

Please sign in to comment.