Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
0a34e527
Commit
0a34e527
authored
9 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
setup.py: harmonize names of build commands
parent
557f595d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+13
-13
13 additions, 13 deletions
setup.py
with
13 additions
and
13 deletions
setup.py
+
13
−
13
View file @
0a34e527
...
...
@@ -21,8 +21,8 @@ from distutils.core import setup, Extension, Command
from
distutils.util
import
get_platform
from
distutils.errors
import
DistutilsError
,
DistutilsModuleError
,
\
CCompilerError
from
distutils.command.build
import
build
as
distutils_build
from
distutils.command.sdist
import
sdist
as
distutils_sdist
from
distutils.command.build
import
build
from
distutils.command.sdist
import
sdist
import
numpy
...
...
@@ -116,7 +116,7 @@ class kwant_build_ext(build_ext):
print
(
banner
())
class
build_tut
(
Command
):
class
kwant_
build_tut
(
Command
):
description
=
"
build the tutorial scripts
"
user_options
=
[]
...
...
@@ -142,15 +142,15 @@ class build_tut(Command):
# Even though the tutorial is not necessary for installation, and "build" is
# supposed to make everything needed to install, this is a robust way to ensure
# that the tutorial is present.
class
kwant_build
(
distutils_
build
):
sub_commands
=
[(
'
build_tut
'
,
None
)]
+
distutils_
build
.
sub_commands
class
kwant_build
(
build
):
sub_commands
=
[(
'
build_tut
'
,
None
)]
+
build
.
sub_commands
def
run
(
self
):
distutils_
build
.
run
(
self
)
build
.
run
(
self
)
write_version
(
os
.
path
.
join
(
self
.
build_lib
,
*
STATIC_VERSION_PATH
))
class
test
(
Command
):
class
kwant_
test
(
Command
):
description
=
"
build, then run the unit tests
"
user_options
=
[]
...
...
@@ -193,8 +193,8 @@ def git_lsfiles():
# distribution in the current state actually builds. It also makes sure that
# the Cython-made C files and the tutorial will be included in the source
# distribution and that they will be up-to-date.
class
kwant_sdist
(
distutils_
sdist
):
sub_commands
=
[(
'
build
'
,
None
)]
+
distutils_
sdist
.
sub_commands
class
kwant_sdist
(
sdist
):
sub_commands
=
[(
'
build
'
,
None
)]
+
sdist
.
sub_commands
def
run
(
self
):
names
=
git_lsfiles
()
...
...
@@ -223,7 +223,7 @@ class kwant_sdist(distutils_sdist):
f
.
write
(
name
+
'
\n
'
)
f
.
write
(
'
MANIFEST
\n
'
)
distutils_
sdist
.
run
(
self
)
sdist
.
run
(
self
)
if
names
is
None
:
print
(
banner
(
'
Warning
'
),
...
...
@@ -240,7 +240,7 @@ with a comment). It may well be incomplete.""",
sep
=
'
\n
'
,
file
=
sys
.
stderr
)
def
make_release_tree
(
self
,
base_dir
,
files
):
distutils_
sdist
.
make_release_tree
(
self
,
base_dir
,
files
)
sdist
.
make_release_tree
(
self
,
base_dir
,
files
)
write_version
(
os
.
path
.
join
(
base_dir
,
*
STATIC_VERSION_PATH
))
...
...
@@ -479,8 +479,8 @@ def main():
cmdclass
=
{
'
build
'
:
kwant_build
,
'
sdist
'
:
kwant_sdist
,
'
build_ext
'
:
kwant_build_ext
,
'
build_tut
'
:
build_tut
,
'
test
'
:
test
},
'
build_tut
'
:
kwant_
build_tut
,
'
test
'
:
kwant_
test
},
ext_modules
=
ext_modules
(
extensions
()),
include_dirs
=
[
numpy
.
get_include
()])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment