From dab279a7029b7376f8b083c30719d4775bc584a6 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 8 Jun 2015 08:04:38 -0500 Subject: fix setup.py things --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9f9ad7f..92aea20 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,14 @@ # coding: utf-8 import os +import re try: from setuptools import setup except ImportError: from distutils.core import setup -base_path = os.path.dirname(__FILE__) +base_path = os.path.dirname(__file__) requirements_path = os.path.join(base_path, "requirements.txt") long_description_path = os.path.join(base_path, "README.md") version_path = os.path.join(base_path, "rpcblockchainexplorer/__init__.py") @@ -22,7 +23,7 @@ def __filter_requirements(requirements): """ Remove lines that are not related to requirements. """ - return [line for line in requirements if line[0] != "#"] + return [line for line in requirements if len(line) > 0 and line[0] != "#"] def __get_version(version_content): """ -- cgit v1.2.3