aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2014-01-29 17:30:49 -0500
committerJoseph Hunkeler <jhunk@stsci.edu>2014-01-29 17:30:49 -0500
commitc8031976d9589f221260574f39e56b778db507b6 (patch)
treeee6e38a42fa7a1390f2dd45251cac9ff3467f166
parent027211d07093148eacc012b1d85fc901ad6d0d35 (diff)
downloadhtc_utils-c8031976d9589f221260574f39e56b778db507b6.tar.gz
Initial commit
-rwxr-xr-xsetup.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100755
index 0000000..33afcba
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+from os import unlink
+from os.path import splitext
+from shutil import copy2
+from setuptools import setup, find_packages
+
+scripts_original = ['condor_split.py', 'condor_wrap.py']
+scripts_renamed = [ splitext(x)[0] for x in scripts_original ]
+
+for script, script_renamed in zip(scripts_original, scripts_renamed):
+ copy2(script, script_renamed)
+
+setup(
+ name="htcondor_utils",
+ version="0.1",
+ packages=find_packages(),
+ scripts=scripts_renamed,
+
+ # metadata for upload to PyPI
+ author="Joseph Hunkeler",
+ author_email="jhunkeler@gmail.com",
+ description="Home-rolled Condor utilities",
+ license="GPL",
+ keywords="condor htcondor util",
+)
+
+for script in scripts_renamed:
+ unlink(script)
+