zoukankan      html  css  js  c++  java
  • setuptools 和 distutils.core 的setup参数

    setuptools 的setup参数

    Standard commands:
      build             build everything needed to install
      build_py          "build" pure Python modules (copy to build directory)
      build_ext         build C/C++ and Cython extensions (compile/link to build directory)
      build_clib        build C/C++ libraries used by Python extensions
      build_scripts     "build" scripts (copy and fixup #! line)
      clean             clean up temporary files from 'build' command
      install           install everything from build directory
      install_lib       install all Python modules (extensions and pure Python)
      install_headers   install C/C++ header files
      install_scripts   install scripts (Python or otherwise)
      install_data      install data files
      sdist             create a source distribution (tarball, zip file, etc.)
      register          register the distribution with the Python package index
      bdist             create a built (binary) distribution
      bdist_dumb        create a "dumb" built distribution
      bdist_rpm         create an RPM distribution
      bdist_wininst     create an executable installer for MS Windows
      check             perform some checks on the package
      upload            upload binary package to PyPI

    Extra commands:
      bdist_wheel       create a wheel distribution
      alias             define a shortcut to invoke one or more commands
      bdist_egg         create an "egg" distribution
      develop           install package in 'development mode'
      dist_info         create a .dist-info directory
      easy_install      Find/get/install Python packages
      egg_info          create a distribution's .egg-info directory
      install_egg_info  Install an .egg-info directory for the package
      rotate            delete older distributions, keeping N newest files
      saveopts          save supplied options to setup.cfg or other config file
      setopt            set an option in setup.cfg or another config file
      test              run unit tests after in-place build (deprecated)
      upload_docs       Upload documentation to PyPI

    usage: gen-library.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: gen-library.py --help [cmd1 cmd2 ...]
       or: gen-library.py --help-commands
       or: gen-library.py cmd --help

    distutils.core setup 的参数


      build            build everything needed to install
      build_py         "build" pure Python modules (copy to build directory)
      build_ext        build C/C++ extensions (compile/link to build directory)
      build_clib       build C/C++ libraries used by Python extensions
      build_scripts    "build" scripts (copy and fixup #! line)
      clean            clean up temporary files from 'build' command
      install          install everything from build directory
      install_lib      install all Python modules (extensions and pure Python)
      install_headers  install C/C++ header files
      install_scripts  install scripts (Python or otherwise)
      install_data     install data files
      sdist            create a source distribution (tarball, zip file, etc.)
      register         register the distribution with the Python package index
      bdist            create a built (binary) distribution
      bdist_dumb       create a "dumb" built distribution
      bdist_rpm        create an RPM distribution
      bdist_wininst    create an executable installer for MS Windows
      check            perform some checks on the package
      upload           upload binary package to PyPI

    usage: gen-library.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: gen-library.py --help [cmd1 cmd2 ...]
       or: gen-library.py --help-commands
       or: gen-library.py cmd --help

    通过例子来查看参数,创建setup.py文件,把下面内容拷贝进去,使用方法: python setup.py --help-commands

    from distutils.core import setup, Extension
    from Cython.Build import cythonize
    # from setuptools import setup
    # from setuptools import Extension

    example_module = Extension(name='numpy_demo', # 模块名称
    sources=['example.cpp'], # 源码
    include_dirs=[r'/home/data/CM/10_device/pybind11/include']
    )

    setup(ext_modules=[example_module]


  • 相关阅读:
    egret 里面设置MovieClip的scale缩放值时,没有效果的情况
    游戏中的胜场数,净胜场数的计算
    使用Laya引擎和AS3(非原生AS)开发手游相关 总结常见bug
    javascript 一些注意事项
    JavaScript面向对象学习小结
    编写协议时注意事项
    Jenkins 在windows系统上的安装与使用
    LayaAir2.0 自定义Mesh-画圆环
    LayaAir2.0 自定义Mesh-画扇形
    Cocos Creator 使用 protobuf
  • 原文地址:https://www.cnblogs.com/sealin/p/14267256.html
Copyright © 2011-2022 走看看