Updated on 2023-12-21 GMT+08:00

Build with Setuptools

Build a Python project with setuptools.

Prerequisites

When using setuptools to pack the code, ensure that the setup.py file exists in the root directory of the code. For details on how to write the file, see the official instructions of Python.

Configuration Description

Add Build with Setuptools, when configuring build actions.

The parameters are described in the following table.

Parameter

Description

Action Name

Name of a build action. It can be customized.

Tool Version

Select a tool version.

Commands

Configure the build commands.

  • You can use the default commands to pack the file into an .egg file.
  • For Python 2.7 or later, it is advised to use python setup.py sdist bdist_wheel to pack the source code package and .whl installation package for pip installation.