[SCM] Packaging for python-ase branch, master, updated. b681349f83cb98ced6b9a5ea2f1d7944900c18ef

Ask Hjorth Larsen asklarsen at gmail.com
Thu Jun 14 17:20:16 UTC 2012


The following commit has been merged in the master branch:
commit b681349f83cb98ced6b9a5ea2f1d7944900c18ef
Author: Ask Hjorth Larsen <asklarsen at gmail.com>
Date:   Thu Jun 14 19:04:03 2012 +0200

    add .pc directory

diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches
new file mode 100644
index 0000000..6857a8d
--- /dev/null
+++ b/.pc/.quilt_patches
@@ -0,0 +1 @@
+debian/patches
diff --git a/.pc/.quilt_series b/.pc/.quilt_series
new file mode 100644
index 0000000..c206706
--- /dev/null
+++ b/.pc/.quilt_series
@@ -0,0 +1 @@
+series
diff --git a/debian/pycompat b/.pc/.version
similarity index 100%
copy from debian/pycompat
copy to .pc/.version
diff --git a/debian/patches/series b/.pc/applied-patches
similarity index 100%
copy from debian/patches/series
copy to .pc/applied-patches
diff --git a/ase/examples/__init__.py b/.pc/debian-changes-3.6.0.2515-1/ase/svnversion.py
similarity index 100%
copy from ase/examples/__init__.py
copy to .pc/debian-changes-3.6.0.2515-1/ase/svnversion.py
diff --git a/.pc/debian-changes-3.6.0.2515-1/setup.py b/.pc/debian-changes-3.6.0.2515-1/setup.py
new file mode 100755
index 0000000..ddd5e5f
--- /dev/null
+++ b/.pc/debian-changes-3.6.0.2515-1/setup.py
@@ -0,0 +1,91 @@
+#!/usr/bin/env python
+
+# Copyright (C) 2007  CAMP
+# Please see the accompanying LICENSE file for further information.
+
+from distutils.core import setup
+from glob import glob
+from os.path import join
+
+import os
+import sys
+
+long_description = """\
+ASE is a python package providing an open source Atomic Simulation
+Environment in the python scripting language."""
+
+
+if sys.version_info < (2, 3, 0, 'final', 0):
+    raise SystemExit, 'Python 2.3 or later is required!'
+
+packages = ['ase',
+            'ase.cluster',
+            'ase.cluster.data',
+            'ase.io',
+            'ase.md',
+            'ase.dft',
+            'ase.gui',
+            'ase.gui.languages',
+            'ase.data',
+            'ase.test',
+            'ase.test.abinit',
+            'ase.test.castep',
+            'ase.test.cmr',
+            'ase.test.elk',
+            'ase.test.fio',
+            'ase.test.fleur',
+            'ase.test.jacapo',
+            'ase.test.nwchem',
+            'ase.test.vasp',
+            'ase.tasks',
+            'ase.utils',
+            'ase.lattice',
+            'ase.lattice.spacegroup',
+            'ase.examples',
+            'ase.optimize',
+            'ase.optimize.test',
+            'ase.visualize',
+            'ase.visualize.vtk',
+            'ase.transport',
+            'ase.calculators',
+            'ase.calculators.jacapo']
+
+package_dir={'ase': 'ase'}
+
+package_data={'ase': ['lattice/spacegroup/spacegroup.dat',
+                      'gui/po/ag.pot',
+                      'gui/po/makefile',
+                      'gui/po/??_??/LC_MESSAGES/ag.po']}
+
+# Compile makes sense only when building
+if 'build' in sys.argv or 'build_ext' in sys.argv or 'install' in sys.argv:
+    msgfmt = 'msgfmt'
+    # Compile translation files (requires gettext)
+    status = os.system(msgfmt + ' -V')
+    if status == 0:
+        for pofile in glob('ase/gui/po/??_??/LC_MESSAGES/ag.po'):
+            mofile = os.path.join(os.path.split(pofile)[0], 'ag.mo')
+            os.system(msgfmt + ' -cv %s --output-file=%s' % (pofile, mofile))
+        package_data['ase'].append('gui/po/??_??/LC_MESSAGES/ag.mo')
+
+# Get the current version number:
+execfile('ase/svnversion_io.py')  # write ase/svnversion.py and get svnversion
+execfile('ase/version.py')        # get version_base
+if svnversion:
+    version = version_base + '.' + svnversion
+else:
+    version = version_base
+
+setup(name = 'python-ase',
+      version=version,
+      description='Atomic Simulation Environment',
+      url='https://wiki.fysik.dtu.dk/ase',
+      maintainer='CAMd',
+      maintainer_email='camd at fysik.dtu.dk',
+      license='LGPLv2.1+',
+      platforms=['linux'],
+      packages=packages,
+      package_dir=package_dir,
+      package_data=package_data,
+      scripts=['tools/ag', 'tools/ase', 'tools/ASE2ase.py', 'tools/testase.py'],
+      long_description=long_description)
diff --git a/ase/examples/__init__.py b/.pc/debian-changes-3.6.0.2515-1/tools/ASE2ase
similarity index 100%
copy from ase/examples/__init__.py
copy to .pc/debian-changes-3.6.0.2515-1/tools/ASE2ase
diff --git a/ase/examples/__init__.py b/.pc/debian-changes-3.6.0.2515-1/tools/testase
similarity index 100%
copy from ase/examples/__init__.py
copy to .pc/debian-changes-3.6.0.2515-1/tools/testase
diff --git a/tools/trajectoryinfo b/.pc/debian-changes-3.6.0.2515-1/tools/trajectoryinfo
similarity index 53%
copy from tools/trajectoryinfo
copy to .pc/debian-changes-3.6.0.2515-1/tools/trajectoryinfo
index ae54847..3151412 100755
--- a/tools/trajectoryinfo
+++ b/.pc/debian-changes-3.6.0.2515-1/tools/trajectoryinfo
@@ -1,22 +1,15 @@
 #!/usr/bin/env python
 
-import os
-from optparse import OptionParser
 from ase.io.trajectory import print_trajectory_info
 from ase.io.bundletrajectory import print_bundletrajectory_info
+import sys
+import os
 
-description = 'Print summary of information from trajectory files.'
-
-p = OptionParser(usage='%prog file.traj [file2.traj ...]',
-                 description=description)
-
-opts, args = p.parse_args()
-
-if len(args) == 0:
-   p.print_help()
-   raise SystemExit(1)
+if len(sys.argv) <= 1:
+   print >>sys.stderr, "Usage:  trajectoryinfo file.traj [file2.traj ...]"
+   sys.exit(1)
 
-for f in args:
+for f in sys.argv[1:]:
    if os.path.isfile(f):
       print_trajectory_info(f)
    elif os.path.isdir(f):

-- 
Packaging for python-ase



More information about the debian-science-commits mailing list