Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ~/.maro not exist issue in build #52

Merged
merged 6 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion maro/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def deploy(hide_info=True):
clean_deployment_folder()

# Deployment started.
os.makedirs(os.path.dirname(version_file_path), exist_ok=True)
version_info = configparser.ConfigParser()
version_info["MARO_DATA"] = {}
version_info["MARO_DATA"]["version"] = __data_version__
Expand Down Expand Up @@ -120,7 +121,10 @@ def deploy(hide_info=True):

def check_deployment_status():
ret = False
if os.path.exists(version_file_path):
skip_deployment = os.environ.get("SKIP_DEPLOYMENT", "FALSE")
if skip_deployment == "TRUE":
ret = True
elif os.path.exists(version_file_path):
version_info = configparser.ConfigParser()
version_info.read(version_file_path)
if "MARO_DATA" in version_info \
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from setuptools.command.develop import develop
import sys

# Set environment variable to skip deployment process of MARO
os.environ["SKIP_DEPLOYMENT"] = "TRUE"

from maro import __version__

# root path to backend
Expand Down