Skip to content

Commit

Permalink
Merge pull request #1 from ThoughtRiver/bug-fix-setup-py
Browse files Browse the repository at this point in the history
Fixing setup.py see pybind/python_example#32
  • Loading branch information
DomHudson authored May 8, 2018
2 parents 3ba1758 + 6709537 commit 58bda12
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@
from __future__ import print_function
from __future__ import unicode_literals

import os
import setuptools
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import subprocess
import sys
import setuptools
import os


__version__ = '0.8.22'
FASTTEXT_SRC = "src"

# Based on https://github.com/pybind/python_example

try:
import pybind11
except ImportError:
if subprocess.call([sys.executable, '-m', 'pip', 'install', 'pybind11']):
raise RuntimeError('pybind11 install failed.')


# Based on https://github.com/pybind/python_example

class get_pybind_include(object):
"""Helper class to determine the pybind11 include path
Expand Down

0 comments on commit 58bda12

Please sign in to comment.