A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-October/009789.html below:

[Python-Dev] Proposal -- makefile patches and scripts to generate python RPMs

[Python-Dev] Proposal -- makefile patches and scripts to generate python RPMsJeremy Hylton jeremy@beopen.com
Fri, 6 Oct 2000 10:54:03 -0400 (EDT)
--cQL1MOyU0I
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Here is the setup script I used to build the Tk RPMs.  The name and
version part is a mess and I would welcome suggestions on how to fix
it.  The problem is that Tkinter gets built against a particular
version of Python and a particular version of Tcl/Tk.  I want the name
of the RPM to indiciate both versions, but didn't seem an obvious way
to accomplish it.  Thus, I put the Python version number in the name
and the Tcl/Tk version number in the version.  Otherwise, I think this
is pretty straightforward distutils stuff (although the documentation
was out of date last I checked).

I've attached three files.  I wrote setup.py and setup.cfg.  Distutils
created MANIFEST.

Jeremy


--cQL1MOyU0I
Content-Type: text/plain
Content-Disposition: inline;
	filename="setup.py"
Content-Transfer-Encoding: 7bit

#! /usr/bin/env python
"""Tkinter is the Python interface to the Tk GUI toolkit.  Tk offers
native look and feel on most major platforms, including Unix, Windows,
and Macintosh.  The Tkinter-2.0 RPM contains the Python C extension
module for Python 2.0.  The Python source files are distributed with
the main Python distribution."""

from distutils.core import setup, Extension

setup(name="Tkinter-2.0",
      version="8.0",
      description="Python interface to Tk GUI toolkit",
      author="Python development team",
      author_email="pythoneers@beopen.com",
      url="http://www.pythonlabs.com/products/python2.0/",
      licence="Modified CNRI Open Source License",
      
      ext_modules=[Extension("_tkinter",
                            ["src/_tkinter.c", "src/tkappinit.c"],
                            define_macros=[('WITH_APPINIT', None)],
                            library_dirs=["/usr/X11R6/lib"],
                            libraries=["tk8.0", "tcl8.0", "X11"],
                            )],

      long_description = __doc__
      )
                                         

--cQL1MOyU0I
Content-Type: text/plain
Content-Disposition: inline;
	filename="setup.cfg"
Content-Transfer-Encoding: 7bit

[bdist_rpm]
packager = Jeremy Hylton <jeremy@beopen.com>
vendor = BeOpen PythonLabs

--cQL1MOyU0I
Content-Type: text/plain
Content-Disposition: inline;
	filename="MANIFEST"
Content-Transfer-Encoding: 7bit

setup.py
src/_tkinter.c
src/tkappinit.c

--cQL1MOyU0I--



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4