python.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:SoCFoundationFlow 作者: mattaw 项目源码 文件源码
def feature_py(self):
    """
    Create tasks to byte-compile .py files and install them, if requested
    """
    self.install_path = getattr(self, 'install_path', '${PYTHONDIR}')
    install_from = getattr(self, 'install_from', None)
    if install_from and not isinstance(install_from, Node.Node):
        install_from = self.path.find_dir(install_from)
    self.install_from = install_from

    ver = self.env.PYTHON_VERSION
    if not ver:
        self.bld.fatal('Installing python files requires PYTHON_VERSION, try conf.check_python_version')

    if int(ver.replace('.', '')) > 31:
        self.install_32 = True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号