mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 15:20:16 +00:00
update 0.10
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
* 0.10
|
||||
- Added systemwide install support. (issue #31)
|
||||
- Fixed issue #41 Handle venv binary with the symlink command.
|
||||
- Improved `venv` command (without virtualenvwrapper)
|
||||
|
||||
* 0.9
|
||||
- Added `buildout` command.
|
||||
- Added `venv` command.
|
||||
|
||||
@@ -25,6 +25,17 @@ If you need to install pythonbrew into somewhere else, you can do that by settin
|
||||
chmod +x pythonbrewinstall
|
||||
./pythonbrewinstall
|
||||
|
||||
For Systemwide(Multi-User) installation
|
||||
---------------------------------------
|
||||
|
||||
If the install script is run as root, pythonbrew will automatically install into /usr/local/pythonbrew.
|
||||
|
||||
The pythonbrew.bashrc will be automatically configured for every user on the system if you install as root.
|
||||
|
||||
After installation, where you would normally use `sudo`, non-root users will need to use `sudopybrew`::
|
||||
|
||||
sudopybrew install -n -v -j2 2.7.2
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
@@ -91,6 +102,7 @@ Create/Remove a symbolic link to python (in a directory on your $PATH)::
|
||||
pythonbrew symlink -p 2.7.2
|
||||
pythonbrew symlink pip # Create a symbolic link to the specified script in bin directory
|
||||
pythonbrew symlink -r # Remove a symbolic link
|
||||
pythonbrew symlink -v foo # Create a symbolic link to the specified virtual environment python in bin directory
|
||||
|
||||
Runs the buildout with specified or current using python::
|
||||
|
||||
@@ -99,6 +111,7 @@ Runs the buildout with specified or current using python::
|
||||
|
||||
Create isolated python environments (uses virtualenv)::
|
||||
|
||||
pythonbrew venv init
|
||||
pythonbrew venv create proj
|
||||
pythonbrew venv list
|
||||
pythonbrew venv use proj
|
||||
@@ -160,11 +173,18 @@ See more details below
|
||||
Changelog
|
||||
=========
|
||||
|
||||
0.10 (2011-08-08)
|
||||
-----------------
|
||||
|
||||
- Added systemwide install support. (issue #31)
|
||||
- Fixed issue #41 Handle venv binary with the symlink command.
|
||||
- Improved `venv` command (without virtualenvwrapper)
|
||||
|
||||
0.9 (2011-07-21)
|
||||
----------------
|
||||
|
||||
- Add `venv` command (virtualenv and virtualenvwrapper supported)
|
||||
- Add `buildout` command.
|
||||
- Added `venv` command (uses virtualenv and virtualenvwrapper)
|
||||
- Added `buildout` command.
|
||||
|
||||
0.8 (2011-07-10)
|
||||
----------------
|
||||
|
||||
+13
@@ -25,6 +25,17 @@ If you need to install pythonbrew into somewhere else, you can do that by settin
|
||||
chmod +x pythonbrewinstall
|
||||
./pythonbrewinstall
|
||||
|
||||
For Systemwide(Multi-User) installation
|
||||
---------------------------------------
|
||||
|
||||
If the install script is run as root, pythonbrew will automatically install into /usr/local/pythonbrew.
|
||||
|
||||
The pythonbrew function will be automatically configured for every user on the system if you install as root.
|
||||
|
||||
After installation, where you would normally use `sudo`, non-root users will need to use `sudopybrew`::
|
||||
|
||||
sudopybrew install -n -v -j2 2.7.2
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
@@ -91,6 +102,7 @@ Create/Remove a symbolic link to python (in a directory on your $PATH)::
|
||||
pythonbrew symlink -p 2.7.2
|
||||
pythonbrew symlink pip # Create a symbolic link to the specified script in bin directory
|
||||
pythonbrew symlink -r # Remove a symbolic link
|
||||
pythonbrew symlink -v foo # Create a symbolic link to the specified virtual environment python in bin directory
|
||||
|
||||
Runs the buildout with specified or current using python::
|
||||
|
||||
@@ -99,6 +111,7 @@ Runs the buildout with specified or current using python::
|
||||
|
||||
Create isolated python environments (uses virtualenv)::
|
||||
|
||||
pythonbrew venv init
|
||||
pythonbrew venv create proj
|
||||
pythonbrew venv list
|
||||
pythonbrew venv use proj
|
||||
|
||||
@@ -6,7 +6,7 @@ except:
|
||||
import configparser as ConfigParser
|
||||
|
||||
# pythonbrew version
|
||||
VERSION = "0.9"
|
||||
VERSION = "0.10"
|
||||
|
||||
# pythonbrew installer root path
|
||||
INSTALLER_ROOT = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
@@ -9,6 +9,7 @@ from pythonbrew.define import PATH_BUILD, PATH_BIN, PATH_DISTS, PATH_PYTHONS,\
|
||||
PATH_LOG, PATH_PATCHES, PATH_ETC_CONFIG,\
|
||||
PATH_SCRIPTS_PYTHONBREW_INSTALLER, PATH_VENVS, PATH_HOME_ETC, ROOT
|
||||
import stat
|
||||
import time
|
||||
|
||||
class PythonbrewInstaller(object):
|
||||
"""pythonbrew installer:
|
||||
@@ -84,6 +85,9 @@ fi
|
||||
fp.write(profile)
|
||||
fp.close()
|
||||
elif os.path.isfile('/etc/profile'):
|
||||
# create backup
|
||||
shutil.copy('/etc/profile', '/tmp/profile.pythonbrew.%s' % int(time.time()))
|
||||
|
||||
output = []
|
||||
is_copy = True
|
||||
fp = open('/etc/profile', 'r')
|
||||
|
||||
@@ -107,7 +107,7 @@ class PythonInstaller(object):
|
||||
dl.download(base_url, self.download_url, self.download_file)
|
||||
except:
|
||||
unlink(self.download_file)
|
||||
logger.error("\n%s" % (sys.exc_info()[1]))
|
||||
logger.error("Failed to download.\n%s" % (sys.exc_info()[1]))
|
||||
sys.exit(1)
|
||||
# extracting
|
||||
if not extract_downloadfile(self.content_type, self.download_file, self.build_dir):
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
0.9
|
||||
0.10
|
||||
Reference in New Issue
Block a user