Skip to content

Commit

Permalink
finishing up tutorial, fixed bug with re-running uranium not working …
Browse files Browse the repository at this point in the history
…when installing new eggs
  • Loading branch information
toumorokoshi committed Feb 1, 2015
1 parent 4c2fbcd commit 40500fc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
37 changes: 25 additions & 12 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ This is all you need to run uranium. Let's run them now:
$ ./uranium
installing virtualenv...
...
activating virtualenv...
...
installing uranium...
...
running uranium...
...
setting up uranium...
done!
[HH:MM:SS] ================
[HH:MM:SS] STARTING URANIUM
[HH:MM:SS] ================
[HH:MM:SS] installing eggs...
[HH:MM:SS] ================
[HH:MM:SS] URANIUM FINISHED
[HH:MM:SS] ================
And congrats, you've had your first Uranium run! Of course, all this
did was run virtualend and install Uranium. Now let's get some real
did was run virtualenv and install Uranium. Now let's get some real
functionality.

------------------------------
Expand All @@ -73,11 +75,22 @@ you can add a couple new section to the uranium file:
And let's run uranium again:

$ ./uranium

You should see:
setting up uranium...
done!
[HH:MM:SS] ================
[HH:MM:SS] STARTING URANIUM
[HH:MM:SS] ================
[HH:MM:SS] installing eggs...
[HH:MM:SS] WARNING: Unable to install develop egg at /tmp/uranium-tut: Directory '/tmp/uranium-tut' is not installable. File 'setup.py' not found.
[HH:MM:SS] Adding requirement nose==1.3.4...
[HH:MM:SS] ================
[HH:MM:SS] URANIUM FINISHED
[HH:MM:SS] ================

Note the:

WARNING: Unable to install develop egg at /tmp/uranium-tut: Directory '/tmp/uranium-tut' is not installable

This is because we don't have any egg source in the current
This is because we don't have any egg source (setup.py) in the current
directory. If you did this in such a directory, you would notice the
egg was installed for you.
develop-egg was installed for you.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
]

setup(name='uranium',
version='0.0.46',
version='0.0.47',
description='a build system for python',
long_description='a build system for python',
author='Yusuke Tsutsumi',
Expand Down
5 changes: 5 additions & 0 deletions uranium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def _activate_virtualenv(uranium_dir):
# when activating a sandbox.
pkg_resources.working_set.entries = sys.path

# in the past, an incorrect real_prefix directory was being
# generated when using uranium. it looks like sys.prefix
# works as a replacement, so let's use that.
sys.real_prefix = sys.prefix

LOGGING_NAMES = [__name__]


Expand Down

0 comments on commit 40500fc

Please sign in to comment.