• notoraptor's avatar
    Use the entry_points/console_scripts feature of setup.py · 0f446def
    notoraptor 提交于
    to make theano scripts installed when running pip install.
    
    These step are done to fix issue #5308. The bin folder
    containing the scripts is now importable from Python,
    with each script embedding its code into a main() function
    specified as the entry point of the script in `setup.py`.
    
    We also detect a Windows-specific error: the cache folder
    cannot be deleted because it contains shared libraries that are
    always loaded at theano importation and stay opened on Windows,
    which forbide the deletion of the shared library files in the cache.
    
    The workaround chosen is to unset theano config flag `cxx` only
    on Windows platform and only in theano-cache script. Doing that,
    Theano will not try to compile any C code, and will also not try
    to load compiled C codes that are in the cache, allowing these files
    to be deleted.
    
    To ensure this workaround does work, we also ensure that lazylinker
    module will be also ignored from cache when `cxx` is unset. Previously,
    if cxx was unset, Theano would not compile lazylinker but would look
    for an already compiled version of this module in the cache.
    0f446def
名称
最后提交
最后更新
.jenkins 正在载入提交数据...
.travis 正在载入提交数据...
benchmark 正在载入提交数据...
bin 正在载入提交数据...
doc 正在载入提交数据...
theano 正在载入提交数据...
.gitignore 正在载入提交数据...
.mailmap 正在载入提交数据...
.travis.yml 正在载入提交数据...
CONTRIBUTING.md 正在载入提交数据...
DESCRIPTION.txt 正在载入提交数据...
EMAIL.txt 正在载入提交数据...
HISTORY.txt 正在载入提交数据...
ISSUE_TEMPLATE.md 正在载入提交数据...
LICENSE.txt 正在载入提交数据...
MANIFEST.in 正在载入提交数据...
NEWS.txt 正在载入提交数据...
NEWS_DEV.txt 正在载入提交数据...
README.txt 正在载入提交数据...
Theano.pyproj 正在载入提交数据...
Theano.sln 正在载入提交数据...
requirement-rtd.txt 正在载入提交数据...
setup.cfg 正在载入提交数据...
setup.py 正在载入提交数据...