Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Reimplement RELIC with latest standard method (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhunkeler committed Aug 3, 2018
1 parent 803ce78 commit 4f4a60c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ RELIC-INFO
*/version.py
build/
dist/
relic/
*.EGG-INFO
__pycache__
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include RELIC-INFO
exclude verhawk/version.py
prune .git
prune relic
1 change: 0 additions & 1 deletion relic
Submodule relic deleted from 0e534e
23 changes: 21 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
from setuptools import setup, find_packages
import os
import pkgutil
import sys
sys.path.insert(1, 'relic')
from setuptools import setup, find_packages
from subprocess import check_call, CalledProcessError


if not pkgutil.find_loader('relic'):
relic_local = os.path.exists('relic')
relic_submodule = (relic_local and
os.path.exists('.gitmodules') and
not os.listdir('relic'))
try:
if relic_submodule:
check_call(['git', 'submodule', 'update', '--init', '--recursive'])
elif not relic_local:
check_call(['git', 'clone', 'https://github.com/spacetelescope/relic.git'])

sys.path.insert(1, 'relic')
except CalledProcessError as e:
print(e)
exit(1)

import relic.release

Expand Down

0 comments on commit 4f4a60c

Please sign in to comment.