Mercurial > repos > guerler > hhblits
comparison lib/python3.8/site-packages/setuptools/command/dist_info.py @ 1:64071f2a4cf0 draft default tip
Deleted selected files
author | guerler |
---|---|
date | Mon, 27 Jul 2020 03:55:49 -0400 |
parents | 9e54283cc701 |
children |
comparison
equal
deleted
inserted
replaced
0:9e54283cc701 | 1:64071f2a4cf0 |
---|---|
1 """ | |
2 Create a dist_info directory | |
3 As defined in the wheel specification | |
4 """ | |
5 | |
6 import os | |
7 | |
8 from distutils.core import Command | |
9 from distutils import log | |
10 | |
11 | |
12 class dist_info(Command): | |
13 | |
14 description = 'create a .dist-info directory' | |
15 | |
16 user_options = [ | |
17 ('egg-base=', 'e', "directory containing .egg-info directories" | |
18 " (default: top of the source tree)"), | |
19 ] | |
20 | |
21 def initialize_options(self): | |
22 self.egg_base = None | |
23 | |
24 def finalize_options(self): | |
25 pass | |
26 | |
27 def run(self): | |
28 egg_info = self.get_finalized_command('egg_info') | |
29 egg_info.egg_base = self.egg_base | |
30 egg_info.finalize_options() | |
31 egg_info.run() | |
32 dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info' | |
33 log.info("creating '{}'".format(os.path.abspath(dist_info_dir))) | |
34 | |
35 bdist_wheel = self.get_finalized_command('bdist_wheel') | |
36 bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir) |