Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
783f98d5
Commit
783f98d5
authored
May 13, 2000
by
Gregory P. Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the 'bdist_base' option, the base temp directory for all bdist commands.
parent
046f4ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
command/bdist.py
command/bdist.py
+13
-2
No files found.
command/bdist.py
View file @
783f98d5
...
...
@@ -11,13 +11,16 @@ import os, string
from
types
import
*
from
distutils.core
import
Command
from
distutils.errors
import
*
from
distutils.util
import
get_platform
class
bdist
(
Command
):
description
=
"create a built (binary) distribution"
user_options
=
[(
'format='
,
'f'
,
user_options
=
[(
'bdist-base='
,
'b'
,
"temporary directory for creating built distributions"
),
(
'format='
,
'f'
,
"format for distribution "
+
"(tar, ztar, gztar, bztar, zip, ... )"
),
]
...
...
@@ -39,12 +42,21 @@ class bdist (Command):
def
initialize_options
(
self
):
self
.
bdist_base
=
None
self
.
format
=
None
# initialize_options()
def
finalize_options
(
self
):
# 'bdist_base' -- parent of per-built-distribution-format
# temporary directories (eg. we'll probably have
# "build/bdist.<plat>/dumb", "build/bdist.<plat>/rpm", etc.)
if
self
.
bdist_base
is
None
:
build_base
=
self
.
find_peer
(
'build'
).
build_base
plat
=
get_platform
()
self
.
bdist_base
=
os
.
path
.
join
(
build_base
,
'bdist.'
+
plat
)
if
self
.
format
is
None
:
try
:
self
.
format
=
self
.
default_format
[
os
.
name
]
...
...
@@ -55,7 +67,6 @@ class bdist (Command):
#elif type (self.format) is StringType:
# self.format = string.split (self.format, ',')
# finalize_options()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment