Commits

Anonymous committed d49ca19

Create setup.py from setup.py.in.

  • Participants
  • Parent commits 4073d2f

Comments (0)

Files changed (4)

 2003-10-29  Joel Rosdahl  <joel@rosdahl.net>
 
+	* setup.py.in: Create setup.py from setup.py.in.
+
 	* python-irclib.spec.in: RPM spec file from Gary Benson.
 
 	* testbot.py (TestBot.on_nicknameinuse): New method.
 
 all: $(DISTFILES)
 
-python-irclib.spec: python-irclib.spec.in
+%: %.in
 	sed 's/%%VERSION%%/$(VERSION)/g' $< >$@
 
 dist: $(DISTFILES)
 	cvs tag version_`echo $(VERSION) | sed 's/\./_/g'`
 
 clean:
-	rm -rf *~ *.pyc build python-irclib.spec
+	rm -rf *~ *.pyc build python-irclib.spec setup.py
 
 .PHONY: all doc dist cvstag clean

File setup.py

-#! /usr/bin/env python
-
-from distutils.core import setup
-setup(name="python-irclib",
-      version="0.4.0",
-      py_modules=["irclib", "ircbot"],
-      author="Joel Rosdahl",
-      author_email="joel@rosdahl.net",
-      url="http://python-irclib.sourceforge.net")
+#! /usr/bin/env python
+
+from distutils.core import setup
+setup(name="python-irclib",
+      version="%%VERSION%%",
+      py_modules=["irclib", "ircbot"],
+      author="Joel Rosdahl",
+      author_email="joel@rosdahl.net",
+      url="http://python-irclib.sourceforge.net")