mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* Upd fabfile, normalising compilation and supporting different runtimes
This commit is contained in:
		
							parent
							
								
									a58920cc5e
								
							
						
					
					
						commit
						d0edb01622
					
				
							
								
								
									
										22
									
								
								fabfile.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								fabfile.py
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -6,19 +6,6 @@ from os import path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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 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):
 | 
					 | 
				
			||||||
        local('pip install cython')
 | 
					 | 
				
			||||||
        local('pip install murmurhash')
 | 
					 | 
				
			||||||
        local('pip install -r dev_requirements.txt')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def sdist():
 | 
					def sdist():
 | 
				
			||||||
| 
						 | 
					@ -36,10 +23,10 @@ def publish():
 | 
				
			||||||
        local('git push origin master')
 | 
					        local('git push origin master')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def setup():
 | 
					def env(lang="python2.7"):
 | 
				
			||||||
    if file_exists('.env'):
 | 
					    if file_exists('.env'):
 | 
				
			||||||
        local('rm -rf .env')
 | 
					        local('rm -rf .env')
 | 
				
			||||||
    local('virtualenv .env')
 | 
					    local('virtualenv -p %s .env' % lang)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def install():
 | 
					def install():
 | 
				
			||||||
| 
						 | 
					@ -50,8 +37,11 @@ def install():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def make():
 | 
					def make():
 | 
				
			||||||
    with virtualenv(DEV_ENV_DIR):
 | 
					    with virtualenv(VENV_DIR):
 | 
				
			||||||
        with lcd(path.dirname(__file__)):
 | 
					        with lcd(path.dirname(__file__)):
 | 
				
			||||||
 | 
					            local('pip install cython')
 | 
				
			||||||
 | 
					            local('pip install murmurhash')
 | 
				
			||||||
 | 
					            local('pip install -r requirements.txt')
 | 
				
			||||||
            local('python setup.py build_ext --inplace')
 | 
					            local('python setup.py build_ext --inplace')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user