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
3eb63e24
Commit
3eb63e24
authored
Jul 02, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaned up the bdist_dumb module
parent
b9706d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
command/bdist_dumb.py
command/bdist_dumb.py
+4
-15
No files found.
command/bdist_dumb.py
View file @
3eb63e24
...
...
@@ -7,16 +7,17 @@ $exec_prefix)."""
__revision__
=
"$Id$"
import
os
from
distutils.core
import
Command
from
distutils.util
import
get_platform
from
distutils.dir_util
import
remove_tree
,
ensure_relative
from
distutils.errors
import
*
from
distutils.errors
import
DistutilsPlatformError
from
distutils.sysconfig
import
get_python_version
from
distutils
import
log
class
bdist_dumb
(
Command
):
description
=
"create a
\
"
dumb
\
"
built distribution"
description
=
'create a "dumb" built distribution'
user_options
=
[(
'bdist-dir='
,
'd'
,
"temporary directory for creating the distribution"
),
...
...
@@ -53,11 +54,7 @@ class bdist_dumb (Command):
self
.
skip_build
=
0
self
.
relative
=
0
# initialize_options()
def
finalize_options
(
self
):
def
finalize_options
(
self
):
if
self
.
bdist_dir
is
None
:
bdist_base
=
self
.
get_finalized_command
(
'bdist'
).
bdist_base
self
.
bdist_dir
=
os
.
path
.
join
(
bdist_base
,
'dumb'
)
...
...
@@ -74,11 +71,7 @@ class bdist_dumb (Command):
(
'dist_dir'
,
'dist_dir'
),
(
'plat_name'
,
'plat_name'
))
# finalize_options()
def
run
(
self
):
if
not
self
.
skip_build
:
self
.
run_command
(
'build'
)
...
...
@@ -127,7 +120,3 @@ class bdist_dumb (Command):
if
not
self
.
keep_temp
:
remove_tree
(
self
.
bdist_dir
,
dry_run
=
self
.
dry_run
)
# run()
# class bdist_dumb
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