Don't create bin/* files magically

Just use import to make scripts available in bin/ instead of
creating these during setup.py install.

Change-Id: I7318bbb77f6564ed58736887e711e1c497873471
This commit is contained in:
Christian Schwede 2014-02-12 20:26:29 +00:00
parent 5709e9532c
commit 39d22ccec7
3 changed files with 50 additions and 4 deletions

24
bin/swift-recon Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/python
# Copyright (c) 2014 Christian Schwede <christian.schwede@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from swift.cli.recon import main
if __name__ == "__main__":
sys.exit(main())

24
bin/swift-ring-builder Executable file
View File

@ -0,0 +1,24 @@
#!/usr/bin/python
# Copyright (c) 2014 Christian Schwede <christian.schwede@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
from swift.cli.ringbuilder import main
if __name__ == "__main__":
sys.exit(main())

View File

@ -52,7 +52,9 @@ scripts =
bin/swift-oldies bin/swift-oldies
bin/swift-orphans bin/swift-orphans
bin/swift-proxy-server bin/swift-proxy-server
bin/swift-recon
bin/swift-recon-cron bin/swift-recon-cron
bin/swift-ring-builder
bin/swift-temp-url bin/swift-temp-url
[entry_points] [entry_points]
@ -88,10 +90,6 @@ paste.filter_factory =
gatekeeper = swift.common.middleware.gatekeeper:filter_factory gatekeeper = swift.common.middleware.gatekeeper:filter_factory
container_sync = swift.common.middleware.container_sync:filter_factory container_sync = swift.common.middleware.container_sync:filter_factory
console_scripts =
swift-recon = swift.cli.recon:main
swift-ring-builder = swift.cli.ringbuilder:main
[build_sphinx] [build_sphinx]
all_files = 1 all_files = 1
build-dir = doc/build build-dir = doc/build