# Path: src/config.py
# DEFAULT_KEY = 'Falldog'
# 
# EXE_SRC_DIR = join(SRC_DIR, 'pyconcrete_exe')
# 
# EXT_SRC_DIR = join(SRC_DIR, 'pyconcrete_ext')
# 
# PY_SRC_DIR = join(SRC_DIR, 'pyconcrete')
# 
# SECRET_HEADER_PATH = join(EXT_SRC_DIR, 'secret_key.h')
# 
# SRC_DIR = join('src')
# 
# TEST_DIR = 'test'


import hashlib
import imp
import os
import subprocess
import sys
import sysconfig
        import unittest
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.install import install
from distutils.core import Command, Extension, setup
from distutils.dist import Distribution
from os.path import join
from src.config import DEFAULT_KEY, EXE_SRC_DIR, EXT_SRC_DIR, PY_SRC_DIR, SECRET_HEADER_PATH, SRC_DIR, TEST_DIR
        filename = join(self.install_libbase, 'pyconcrete.pth')
        with open(filename, 'w') as f:
            f.write('import pyconcrete')
        print('creating %s' % filename)

    def install_exe(self):
        if sys.platform == 'win32':
            # install `pyconcrete.exe` to %PYTHON%/Scripts
            exe_name = 'pyconcrete.exe'
        else:
            # install `pyconcrete` to /usr/local/bin
            exe_name = 'pyconcrete'
        self.copy_file(os.path.join(self.build_scripts, exe_name), os.path.join(self.install_scripts, exe_name))


# ================================================= test command ================================================= #


class TestEx(Command):
    description = "Running all unit test for pyconcrete"
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):


# Path: src/config.py
# DEFAULT_KEY = 'Falldog'
# 
# EXE_SRC_DIR = join(SRC_DIR, 'pyconcrete_exe')
# 
# EXT_SRC_DIR = join(SRC_DIR, 'pyconcrete_ext')
# 
# PY_SRC_DIR = join(SRC_DIR, 'pyconcrete')
# 
# SECRET_HEADER_PATH = join(EXT_SRC_DIR, 'secret_key.h')
# 
# SRC_DIR = join('src')
# 
# TEST_DIR = 'test'


# Path: setup.py
import hashlib
import imp
import os
import subprocess
import sys
import sysconfig
        import unittest
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.install import install
from distutils.core import Command, Extension, setup
from distutils.dist import Distribution
from os.path import join
from src.config import DEFAULT_KEY, EXE_SRC_DIR, EXT_SRC_DIR, PY_SRC_DIR, SECRET_HEADER_PATH, SRC_DIR, TEST_DIR

        filename = join(self.install_libbase, 'pyconcrete.pth')
        with open(filename, 'w') as f:
            f.write('import pyconcrete')
        print('creating %s' % filename)

    def install_exe(self):
        if sys.platform == 'win32':
            # install `pyconcrete.exe` to %PYTHON%/Scripts
            exe_name = 'pyconcrete.exe'
        else:
            # install `pyconcrete` to /usr/local/bin
            exe_name = 'pyconcrete'
        self.copy_file(os.path.join(self.build_scripts, exe_name), os.path.join(self.install_scripts, exe_name))


# ================================================= test command ================================================= #


class TestEx(Command):
    description = "Running all unit test for pyconcrete"
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):


        suite = unittest.TestLoader().discover(TEST_DIR)