Skip to content

Commit e56f53c

Browse files
committed
Fix travis builds
1 parent 22efd29 commit e56f53c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

pydgraph/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = '1.0.0a2'
15+
VERSION = '1.0.0a3'

setup.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,23 @@
1313
# limitations under the License.
1414

1515
import os
16-
from pypandoc import convert
16+
import sys
1717

1818
try:
1919
from setuptools import setup
2020
except ImportError:
2121
from distutils.core import setup
2222

23+
try:
24+
from pypandoc import convert
25+
except ImportError as e:
26+
# NOTE: error is thrown only for package build steps
27+
if 'sdist' in sys.argv or 'bdist_wheel' in sys.argv:
28+
raise e
29+
30+
def convert(f, _):
31+
return open(f, 'r').read()
32+
2333
from pydgraph.meta import VERSION
2434

2535
README = os.path.join(os.path.dirname(__file__), 'README.md')

0 commit comments

Comments
 (0)