~longsleep/snapcraft/snapcraft-debs-plugin

« back to all changes in this revision

Viewing changes to snapcraft/plugins/python2_project.py

  • Committer: Snappy Tarmac
  • Author(s): Ted Gould
  • Date: 2015-09-22 23:14:22 UTC
  • mfrom: (181.2.3 multi-python-version)
  • Revision ID: snappy_tarmac-20150922231422-2p9rklcy3003y2tx
Choose the python path based on the version installed by ted approved by sergiusens

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    @property
44
44
    def dist_packages_dir(self):
45
45
        return os.path.join(
46
 
            self.installdir, 'usr', 'lib', 'python2.7', 'dist-packages')
 
46
            self.installdir, 'usr', 'lib', self.python_version, 'dist-packages')
 
47
 
 
48
    @property
 
49
    def python_version(self):
 
50
        return self.run_output(['pyversions', '-i'])
47
51
 
48
52
    # Takes the setup.py file and puts a couple little gems on the
49
53
    # front to make things work better.