summaryrefslogtreecommitdiff
path: root/src/distutils2/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/distutils2/command')
-rw-r--r--src/distutils2/command/upload_docs.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/distutils2/command/upload_docs.py b/src/distutils2/command/upload_docs.py
new file mode 100644
index 0000000..f35cd55
--- /dev/null
+++ b/src/distutils2/command/upload_docs.py
@@ -0,0 +1,19 @@
+import os.path
+from distutils2.core import Command
+
+class upload_docs(Command):
+
+ user_options = [
+ ('upload-dir=', None, 'directory to upload'),
+ ]
+
+ def initialize_options(self):
+ self.upload_dir = None
+
+ def finalize_options(self):
+ if self.upload_dir == None:
+ build = self.get_finalized_command('build')
+ self.upload_dir = os.path.join(build.build_base, "docs")
+
+ def run(self):
+ pass