Skip to content

Commit

Permalink
Merge 326475c into aa25857
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Oct 22, 2014
2 parents aa25857 + 326475c commit e5ad0be
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ recursive-include licenses *
recursive-include cextern *
recursive-include scripts *

exclude *.pyc *.o
prune docs/_build
prune build

recursive-include astropy_helpers *
exclude astropy_helpers/.git
exclude astropy_helpers/.gitignore

exclude *.pyc *.o
prune docs/api
16 changes: 16 additions & 0 deletions ah_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@
from setuptools.package_index import PackageIndex
from setuptools.sandbox import run_setup

# Note: The following import is required as a workaround to
# https://github.com/astropy/astropy-helpers/issues/89; if we don't import this
# module now, it will get cleaned up after `run_setup` is called, but that will
# later cause the TemporaryDirectory class defined in it to stop working when
# used later on by setuptools
try:
import setuptools.py31compat
except ImportError:
pass

# TODO: Maybe enable checking for a specific version of astropy_helpers?
DIST_NAME = 'astropy-helpers'
PACKAGE_NAME = 'astropy_helpers'
Expand Down Expand Up @@ -180,6 +190,12 @@ def use_astropy_helpers(path=None, download_if_needed=None, index_url=None,
if index_url is None:
index_url = INDEX_URL

# If this is a release then the .git directory will not exist so we
# should not use git.
git_dir_exists = os.path.exists(os.path.join(os.path.dirname(__file__), '.git'))
if use_git is None and not git_dir_exists:
use_git = False

if use_git is None:
use_git = USE_GIT

Expand Down

0 comments on commit e5ad0be

Please sign in to comment.