-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`distutils` package is deprecated. Use `packaging` library instead. Fixes: #67 Signed-off-by: Aravinda Vishwanathapura <[email protected]>
- Loading branch information
1 parent
e803685
commit b3abf1b
Showing
2 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/usr/bin/python | ||
|
||
from setuptools import setup | ||
import distutils.command.install_scripts | ||
import shutil | ||
|
||
from gstatus import version | ||
|
@@ -10,15 +9,6 @@ | |
long_description = f.read().strip() | ||
f.close() | ||
|
||
# idea from http://stackoverflow.com/a/11400431/2139420 | ||
class strip_py_ext(distutils.command.install_scripts.install_scripts): | ||
def run(self): | ||
distutils.command.install_scripts.install_scripts.run(self) | ||
for script in self.get_outputs(): | ||
if script.endswith(".py"): | ||
shutil.move(script, script[:-3]) | ||
|
||
|
||
setup( | ||
name = "gstatus", | ||
version= version.VERSION, | ||
|
@@ -28,7 +18,7 @@ def run(self): | |
author_email = "[email protected]", | ||
url = "https://github.com/gluster/gstatus", | ||
license = "GPLv3", | ||
install_requires=['glustercli'], | ||
install_requires=['glustercli', 'packaging'], | ||
packages = [ | ||
"gstatus", | ||
"gstatus.glusterlib", | ||
|
@@ -37,8 +27,5 @@ def run(self): | |
"console_scripts": [ | ||
"gstatus = gstatus.__main__:main", | ||
] | ||
}, | ||
cmdclass = { | ||
"install_scripts" : strip_py_ext | ||
} | ||
) |