Skip to content

Commit

Permalink
fix build script to exclude init files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolfbr committed Feb 14, 2018
1 parent b0aefea commit 951b941
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
13 changes: 12 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import sys
sys.path.insert(0, os.path.abspath('..'))

import jade

# -- General configuration ---------------------------------------------

Expand Down Expand Up @@ -74,6 +73,18 @@ def __init__(self):
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
"""


# Get the project root dir, which is the parent dir of this
cwd = os.getcwd()
project_root = os.path.dirname(cwd)

# Insert the project root dir as the first element in the PYTHONPATH.
# This lets us ensure that the source package is imported, and that its
# version is used.
sys.path.insert(0, project_root)

import jade

#sys.modules.update({'rif.geom.ray_hash': DumbThing(), 'rif.hash': DumbThing()})


Expand Down
13 changes: 13 additions & 0 deletions docs/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pip==9.0.1
bumpversion==0.5.3
wheel==0.30.0
watchdog==0.8.3
flake8==3.5.0
tox==2.9.1
coverage==4.4.2
Sphinx==1.6.5
twine==1.9.1
cryptography==2.1.4
PyYAML==3.11
sphinx-argparse==0.2.1

7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

from setuptools import setup, find_packages
import os,glob
import os,glob,re



Expand Down Expand Up @@ -75,8 +75,9 @@ def get_all_scripts_to_install(public_dir='apps/public', pilot_dir='apps/pilot')
#print "reading " + app_dir
f = glob.glob(app_dir+"/"+"*.py")
#print(f)

all_scripts.extend(f)
for script in f:
if not re.search("__init__", script):
all_scripts.append(script)

#print all_scripts
print "Found scripts:"
Expand Down

0 comments on commit 951b941

Please sign in to comment.