Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't import biopandas during install #60

Merged
merged 5 commits into from
Oct 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
from os.path import realpath, dirname, join
import io
import os
from setuptools import setup, find_packages
import biopandas

VERSION = biopandas.__version__
PROJECT_ROOT = dirname(realpath(__file__))
VERSION = None
with io.open(
rasbt marked this conversation as resolved.
Show resolved Hide resolved
os.path.join(os.path.dirname(__file__), 'biopandas/__init__.py'),
encoding='utf-8'
) as f:
for l in f:
if not l.startswith('__version__'):
continue
VERSION = l.split('=')[1].strip(' "\'\n')
break
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))

REQUIREMENTS_FILE = join(PROJECT_ROOT, 'requirements.txt')
REQUIREMENTS_FILE = os.path.join(PROJECT_ROOT, 'requirements.txt')

with open(REQUIREMENTS_FILE) as f:
install_reqs = f.read().splitlines()
Expand Down