mirror of https://github.com/explosion/spaCy.git
get mingw32 to work
This commit is contained in:
parent
a404bfec38
commit
0e321a7105
|
@ -17,8 +17,15 @@ def migrate(path):
|
|||
|
||||
def link(package, path):
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
os.symlink(package.dir_path('data'), path)
|
||||
if os.path.isdir(path):
|
||||
shutil.rmtree(path)
|
||||
else:
|
||||
os.unlink(path)
|
||||
|
||||
if not hasattr(os, 'symlink'): # not supported by win+py27
|
||||
shutil.copytree(package.dir_path('data'), path)
|
||||
else:
|
||||
os.symlink(package.dir_path('data'), path)
|
||||
|
||||
|
||||
@plac.annotations(
|
||||
|
|
11
venv.ps1
11
venv.ps1
|
@ -2,14 +2,21 @@ param (
|
|||
[string]$python = $(throw "-python is required."),
|
||||
[string]$install_mode = $(throw "-install_mode is required."),
|
||||
[string]$pip_date
|
||||
[string]$compiler
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
|
||||
if(!(Test-Path -Path ".build"))
|
||||
{
|
||||
virtualenv .build --python $python
|
||||
virtualenv .build --system-site-packages --python $python
|
||||
}
|
||||
|
||||
if($compiler)
|
||||
{
|
||||
"[build]`r`ncompiler=$compiler" | Out-File .\.build\Lib\distutils\distutils.cfg
|
||||
}
|
||||
|
||||
.build\Scripts\activate.ps1
|
||||
|
||||
python build.py prepare $pip_date
|
||||
|
|
Loading…
Reference in New Issue