Permalink
Browse files

Cleaned the documentation installation under Windows

  • Loading branch information...
1 parent cad5339 commit 095e1b25a2bc2159d0cc224729d74f029763cb05 @jcbagneris jcbagneris committed Jan 12, 2009
Showing with 30 additions and 6 deletions.
  1. +12 −5 docs/en/config.txt
  2. +18 −1 setup.py
View
@@ -21,9 +21,9 @@ their required parameters: world, engines/markets, agents.
Configuration file syntax
=========================
-Configuration files are provided in the ``docs/examples/`` directory, it is
-strongly recommanded to study those before writing your own (see `examples
-provided`_ below).
+Configuration files are provided in the ``examples`` directory, which is located
+in the main documentation directory [1]_. It is strongly recommanded to study
+those before writing your own (see `examples provided`_ below).
A minimal configuration file might be::
@@ -186,5 +186,12 @@ agents
Examples provided
=================
-The ``docs/examples`` directory contains three example configuration files, all
-of which are heavily commented.
+The ``examples`` directory in the main documentation directory [1]_ contains three
+example configuration files, all of which are heavily commented.
+
+
+-----------------------
+
+.. [1] The main documentation directory is located in the ``docs`` directory of FMS
+ installation under Linux or BSD, and in the ``Doc\fms-documentation``
+ directory in the Python installation directory under Windows
View
@@ -1,3 +1,4 @@
+import os
import os.path
from distutils.core import setup
@@ -16,6 +17,21 @@
to write your own and contribute to FMS.
"""
+data_files = []
+
+data_dir = (
+ 'docs/examples',
+ 'docs/en/man',
+ 'docs/en/html',
+ )
+
+for directory in data_dir:
+ for dirpath, dirnames, filenames in os.walk(directory):
+ newpath = os.path.join('Doc',
+ 'fms-documentation', dirpath.split(os.sep, 1)[1])
+ data_files.append([newpath,
+ [os.path.join(dirpath, f) for f in filenames]])
+
setup(name='fms',
version = version,
@@ -32,5 +48,6 @@
'fms.utils',
'fms.worlds',
],
- scripts = ['fms.py'],
+ scripts = ['startfms.py'],
+ data_files = data_files,
)

0 comments on commit 095e1b2

Please sign in to comment.