Skip to content

Commit

Permalink
Getting setup.py working, moving folders around
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 12, 2014
1 parent e491dab commit 6cffc62
Show file tree
Hide file tree
Showing 46 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
env
logs
build
dist
*.pyc
docs/_*
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include flux/www/static *
recursive-include flux/www/templates *
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

import sys
import os
from flux import settings

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.environ['FLUX_HOME'] + "/src/flux")
sys.path.insert(0, settings.FLUX_HOME + "/src/flux")

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

Expand Down
3 changes: 0 additions & 3 deletions flux

This file was deleted.

File renamed without changes.
3 changes: 3 additions & 0 deletions flux/bin/flux
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
source $FLUX_HOME/init.sh
python $FLUX_HOME/flux/bin/flux_bin.py $*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions src/flux/settings.py → flux/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
from sqlalchemy import create_engine

if 'FLUX_HOME' not in os.environ:
raise Exception(
"Looks like someone forgot to set their FLUX_HOME env variable.")
os.environ['FLUX_HOME'] = os.path.join(os.path.dirname(__file__), "..")
FLUX_HOME = os.environ['FLUX_HOME']

BASE_FOLDER = FLUX_HOME + '/src/flux'
BASE_FOLDER = FLUX_HOME + '/flux'
if BASE_FOLDER not in sys.path:
sys.path.append(BASE_FOLDER)
DAGS_FOLDER = FLUX_HOME + '/dags'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
source $FLUX_HOME/env/bin/activate
export PYTHONPATH=$FLUX_HOME/src
export PYTHONPATH=$FLUX_HOME
16 changes: 16 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
from distutils.core import setup
from pip.req import parse_requirements

req_filepath = os.path.join(os.path.dirname(__file__), "/requirements.txt")
install_reqs = parse_requirements(req_filepath)

setup(
name='flux',
version='0.1',
packages=['flux'],
install_requires=install_reqs,
author='Maxime Beauchemin',
author_email='[email protected]',
)

0 comments on commit 6cffc62

Please sign in to comment.