瀏覽代碼

switch to entrypoints

Ronny Pfannschmidt 10 年之前
父節點
當前提交
45e89add52
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 0 4
      scripts/borg
  2. 5 1
      setup.py

+ 0 - 4
scripts/borg

@@ -1,4 +0,0 @@
-#!/usr/bin/env python
-from borg.archiver import main
-main()
-

+ 5 - 1
setup.py

@@ -129,7 +129,11 @@ setup(
         'Topic :: System :: Archiving :: Backup',
     ],
     packages=['borg', 'borg.testsuite'],
-    scripts=['scripts/borg'],
+    entry_points={
+        'console_scripts': [
+            'borg = borg.archiver:main',
+        ]
+    },
     cmdclass=cmdclass,
     ext_modules=ext_modules,
     # msgpack pure python data corruption was fixed in 0.4.6.