Opened 15 years ago

#6 new defect

make "python ./setup.py --version" and "python ./setup.py --fullname" work

Reported by: zooko Owned by: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:
Launchpad Bug:

Description

<warner> hm, question about darcsver
<warner> if I have a tree that has no _darcs directory but does have an
	 updated src/allmydata/_version.py file				[17:12]
<warner> should "setup.py --version" work?
<warner> I'm getting 0.0.0
<zooko> That's not right.
<zooko> setup.py --version ?						[17:13]
<zooko> You mean ./setup.py darcsver ?
<warner> (this is in a git tree, in which I've copied the _version.py from a
	 freshly 'setup.py build'-ed darcs tree)
* zooko thinks.
<zooko> Do you have darcsver installed?
<warner> no, I'm using "setup.py --version" to ask it what the tahoe version
	 is, so I can guess the name of the tarball created by a subsequent
	 "setup.py sdist"
<zooko> setup.py --version ?
<zooko> I've never heard of that.
<zooko> You could try "python ./setup.py darcsver --loud" ...		[17:14]
<warner> I'm expecting "setup.py darcsver" (via 'make make-version') to
	 populate something which setup.py --version can see later
<zooko> I've gotta go.
<warner> ok, see ya
<zooko> warner: um,
<warner> I'll keep playing with this
<zooko> sorry,
<zooko> the way it currently works..
<zooko> Let's see.
<warner> I'm also using 'setup.py --package' to find out what the package name
	 is
<warner> btw, I only noticed these options a few minutes ago		[17:15]
<warner> they may not have ever worked
<warner> but they'd be awfully handy for what I'm trying to write right now
<zooko> Well, they definitely don't work now.
<warner> Information display options (just display information, ignore any
	 commands)
<warner>   --help-commands     list all available commands
<warner>   --name              print package name
<warner>   --version (-V)      print package version
<zooko> The way I had been doing it was to use "python ./setup.py darcsver
	--count-all-patches" to generate the version
<warner>   --fullname          print <package name>-<version>
<zooko> and
<zooko> something to do with ./src/allmydata/_appname.py for the app name.
									[17:16]
<warner> ah, maybe I have to copy _appname.py too
<homey1337> zooko: afaict my buildbot is on ...
<warner> I remember having to do two things to make any given git tree work
	 right, but I couldn't remember the other one
ERC> 

Change History (0)

Note: See TracTickets for help on using tickets.