Changeset 2755f28 in trunk


Ignore:
Timestamp:
2008-01-01T06:28:31Z (18 years ago)
Author:
Zooko O'Whielacronx <zooko@…>
Branches:
master
Children:
9b38eeb
Parents:
58bedc6
Message:

setup: use darcsver instead of pyutil for darcsver, use setup.py plugin instead of executable for darcsver
This hopefully fixes the deb builders.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified Makefile

    r58bedc6 r2755f28  
    6363.PHONY: make-version build
    6464
    65 # The 'darcsver' executable comes in the 'pyutil' package:
    66 # http://pypi.python.org/pypi/pyutil It is necessary only if you want to
     65# The 'darcsver' setup.py command comes in the 'darcsver' package:
     66# http://pypi.python.org/pypi/darcsver It is necessary only if you want to
    6767# automatically produce a new _version.py file from the current darcs history.
    68 # N.B.: the first argument to darcsver is used to find darcs tags that represent
    69 # released versions, so it needs to match whatever release conventions are in
    70 # use.
    7168make-version:
    72         darcsver "allmydata-tahoe" "src/allmydata/_version.py"
     69        $(PYTHON) ./setup.py darcsver
    7370
    7471.built:
  • TabularUnified setup.py

    r58bedc6 r2755f28  
    7878
    7979
    80 # Build _version.py before trying to extract a version from it. If we aren't
    81 # running from a darcs checkout, this will leave any pre-existing _version.py
    82 # alone.
    83 try:
    84     (cin, cout, cerr,) = os.popen3("darcsver --quiet allmydata-tahoe src/allmydata/_version.py")
    85     print cout.read()
    86 except Exception, le:
    87     pass
    8880VERSIONFILE = "src/allmydata/_version.py"
    8981verstr = "unknown"
     
    109101majority of the nodes are no longer available."""
    110102
     103setup_requires = []
     104
     105# darcsver is needed only if you want "./setup.py darcsver" to write a new
     106# version stamp in src/allmydata/_version.py, with a version number derived from
     107# darcs history.
     108# http://pypi.python.org/pypi/darcsver
     109setup_requires.append('darcsver >= 1.0.0')
     110
     111# setuptools_darcs is required only if you want to use "./setup.py sdist",
     112# "./setup.py bdist", and the other "dist" commands -- it is necessary for them
     113# to produce complete distributions, which need to include all files that are
     114# under darcs revision control.
     115# http://pypi.python.org/pypi/setuptools_darcs
     116setup_requires.append('setuptools_darcs >= 1.0.5')
     117
    111118setup(name='allmydata-tahoe',
    112119      version=verstr,
     
    123130      install_requires=install_requires,
    124131      include_package_data=True,
    125       setup_requires=['setuptools_darcs >= 1.0.5', 'pyutil >= 1.3.8'], # pyutil is for darcsver
     132      setup_requires=setup_requires,
    126133      dependency_links=dependency_links,
    127134      entry_points = { 'console_scripts': [ 'tahoe = allmydata.scripts.runner:run' ] },
Note: See TracChangeset for help on using the changeset viewer.