Edgewall Software
Modify

Opened 11 days ago

Closed 11 days ago

Last modified 11 days ago

#13748 closed enhancement (duplicate)

Time to use `build` from `setuptools` instead of `distutils`?

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The following feature in setuptools has been deprecated for almost 2 years and is about to be removed:

https://github.com/pypa/setuptools/blob/1ed759173983656734c3606e9c97a348895e5e0c/setuptools/command/build.py#L13-L27

It might be a good idea to import build directly from setuptools for the following code:

https://github.com/edgewall/trac/blob/8fb2bf0e5ab885fb4e174d11599e6bc76bf71b8a/trac/dist.py#L558-L559

(build is available directly from setuptools, starting on version v62.4.0)

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 11 days ago

Resolution: duplicate
Status: newclosed

A duplicate of #13456

in reply to:  description comment:2 by Jun Omae, 11 days ago

It might be a good idea to import build directly from setuptools for the following code:

https://github.com/edgewall/trac/blob/8fb2bf0e5ab885fb4e174d11599e6bc76bf71b8a/trac/dist.py#L558-L559

Incorrect. The code intends to invoke compile_catalog before build_py. See comments above the code.

	        # 'bdist_wininst' runs a 'build', so make the latter
	        # run a 'compile_catalog' before 'build_py'

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.