* Specify murmurhash in the setup_requires field

This commit is contained in:
Matthew Honnibal 2015-01-04 01:59:14 +11:00
parent ae7c811fd1
commit 27c737a80f
2 changed files with 20 additions and 3 deletions

18
fabfile.py vendored
View File

@ -1,12 +1,28 @@
from fabric.api import local, run, lcd, cd, env from fabric.api import local, run, lcd, cd, env
from os.path import exists as file_exists from os.path import exists as file_exists
from fabtools.python import virtualenv from fabtools.python import install, is_installed, virtualenv, install_requirements
from os import path from os import path
import json import json
PWD = path.dirname(__file__) PWD = path.dirname(__file__)
VENV_DIR = path.join(PWD, '.env') VENV_DIR = path.join(PWD, '.env')
DEV_ENV_DIR = path.join(PWD, '.denv')
def require_dep(name):
local('pip install %s' % name)
def dev():
# Allow this to persist, since we aren't as rigorous about keeping state clean
if not file_exists('.denv'):
local('virtualenv .denv')
with virtualenv(DEV_ENV_DIR):
require_dep('cython')
require_dep('murmurhash')
require_dep('numpy')
local('pip install -r requirements.txt')
def sdist(): def sdist():

View File

@ -83,7 +83,7 @@ setup(
description="Industrial-strength NLP", description="Industrial-strength NLP",
author='Matthew Honnibal', author='Matthew Honnibal',
author_email='honnibal@gmail.com', author_email='honnibal@gmail.com',
version='0.12', version='0.13',
url="http://honnibal.github.io/spaCy/", url="http://honnibal.github.io/spaCy/",
package_data={"spacy": ["*.pxd"], package_data={"spacy": ["*.pxd"],
"spacy.en": ["*.pxd", "data/pos/*", "spacy.en": ["*.pxd", "data/pos/*",
@ -93,5 +93,6 @@ setup(
ext_modules=exts, ext_modules=exts,
license="Dual: Commercial or AGPL", license="Dual: Commercial or AGPL",
install_requires=['murmurhash', 'cymem', 'preshed', 'thinc', "unidecode", install_requires=['murmurhash', 'cymem', 'preshed', 'thinc', "unidecode",
"ujson"] "ujson"],
setup_requires=["murmurhash", "numpy"],
) )