diff --git a/regolith/helpers/__init__.py b/regolith/helpers/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/setup.py_hold b/setup.py_hold deleted file mode 100644 index 6d750ec16..000000000 --- a/setup.py_hold +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env python -# coding=utf-8 -"""The regolith installer.""" -from __future__ import print_function -from pathlib import Path -import os -import sys -import platform - -try: - from setuptools import setup - from setuptools.command.develop import develop - - HAVE_SETUPTOOLS = True -except ImportError: - from distutils.core import setup - - HAVE_SETUPTOOLS = False - -from regolith import __version__ as RG_VERSION -PW_AFFECTED_OSX_SYSTEMS = ["darwin"] - -def main(): - try: - if "--name" not in sys.argv: - print(logo) - except UnicodeEncodeError: - pass - with open(os.path.join(os.path.dirname(__file__), "README.rst"), "r") as f: - readme = f.read() - skw = dict( - classifiers=["Programming Language :: Python :: 3"], - packages=["regolith", "regolith.builders", "regolith.helpers"], - package_dir={"regolith": "regolith"}, - scripts=["scripts/regolith"], - zip_safe=False, - ) - if HAVE_SETUPTOOLS: - skw["setup_requires"] = [] - # skw['install_requires'] = ['Jinja2', 'pymongo'] - - if platform.system().lower() in PW_AFFECTED_OSX_SYSTEMS: - #The following lines find the python.app script, parses the script to find the path of its executable, and sets - #the sys.executable to that executable. The shebang line created will be that of the new sys.executable - import subprocess - py_app_path = subprocess.check_output('which python.app', shell=True) - py_app_path = py_app_path.decode('utf-8')[:-1] - py_app_contents = subprocess.check_output('cat ' + py_app_path, shell=True) - py_app_contents = py_app_contents.decode('utf-8') - new_sys_executable = py_app_contents.splitlines()[-1] - new_sys_executable = new_sys_executable.split(' ')[0] - sys.executable = new_sys_executable - - skw['scripts'] = skw['scripts'] + ['scripts/helper_gui'] + ['scripts/helper_connect'] + ['scripts/profile_regolith'] + ['scripts/profile_helper_gui'] - setup(**skw) - - -logo = """ -""" - -if __name__ == "__main__": - main()