Ejemplo n.º 1
0
    def finalize_options(self):
        _install.finalize_options(self)

        vars = {'dist_name': self.distribution.get_name(),}
        self.install_purelib = scheme.get_scheme(pythonrc.scheme, 'purelib')
        self.install_platlib = scheme.get_scheme(pythonrc.scheme, 'purelib')
        self.install_headers = scheme.get_scheme(pythonrc.scheme, 'headers', vars=vars)
        self.install_scripts = scheme.get_scheme(pythonrc.scheme, 'scripts')
        self.install_data = scheme.get_scheme(pythonrc.scheme, 'data')

        if self.distribution.ext_modules: # has extensions: non-pure
            self.install_lib = self.install_platlib
        else:
            self.install_lib = self.install_purelib
Ejemplo n.º 2
0
def boot():
    base = path.abspath(path.dirname(pythonrc.__file__))

    # real_prefix is useful for pip and uninstalling system pkgs
    sys.real_prefix = sys.prefix
    # python uses this almost everywhere
    sys.prefix = base

    if not pythonrc.sitepackages:
        sys.path = sys.__rvirtualenv_prev_path

    this_site_packages = [
        scheme.get_scheme(pythonrc.scheme, 'purelib'),
        scheme.get_scheme(pythonrc.scheme, 'platlib'),
    ]

    scheme.add_to_path(getattr(pythonrc, 'extra_paths', []))
    scheme.add_to_path(this_site_packages)
Ejemplo n.º 3
0
    def finalize_options(self):
        _install.finalize_options(self)

        vars = {
            'dist_name': self.distribution.get_name(),
        }
        self.install_purelib = scheme.get_scheme(pythonrc.scheme, 'purelib')
        self.install_platlib = scheme.get_scheme(pythonrc.scheme, 'purelib')
        self.install_headers = scheme.get_scheme(pythonrc.scheme,
                                                 'headers',
                                                 vars=vars)
        self.install_scripts = scheme.get_scheme(pythonrc.scheme, 'scripts')
        self.install_data = scheme.get_scheme(pythonrc.scheme, 'data')

        if self.distribution.ext_modules:  # has extensions: non-pure
            self.install_lib = self.install_platlib
        else:
            self.install_lib = self.install_purelib
Ejemplo n.º 4
0
def boot():
    base = path.abspath(path.dirname(pythonrc.__file__))

    # real_prefix is useful for pip and uninstalling system pkgs
    sys.real_prefix = sys.prefix
    # python uses this almost everywhere
    sys.prefix = base

    if not pythonrc.sitepackages:
        sys.path = sys.__rvirtualenv_prev_path

    this_site_packages = [
        scheme.get_scheme(pythonrc.scheme, 'purelib'),
        scheme.get_scheme(pythonrc.scheme, 'platlib'),
    ]

    scheme.add_to_path(getattr(pythonrc, 'extra_paths', []))
    scheme.add_to_path(this_site_packages)

    install.monkeypatch()
Ejemplo n.º 5
0
import sys
from os import path

import rvirtualenvinstall.install
from rvirtualenvinstall import scheme
import pythonrc

base = path.abspath(path.dirname(pythonrc.__file__))

# real_prefix is useful for pip and uninstalling system pkgs
sys.real_prefix = sys.prefix
# python uses this almost everywhere
sys.prefix = base

this_site_packages = [
    scheme.get_scheme(pythonrc.scheme, 'purelib'),
    scheme.get_scheme(pythonrc.scheme, 'platlib'),
]

scheme.add_to_path(getattr(pythonrc, 'extra_paths', []))
scheme.add_to_path(this_site_packages)