⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286633 in webkit


Ignore:
Timestamp:
Dec 7, 2021, 5:32:10 PM (5 years ago)
Author:
Yousuke.Kimoto@sony.com
Message:

[webkitcorepy] Fail to install python module when a working directory is not on C drive on Windows
https://bugs.webkit.org/show_bug.cgi?id=233936

Reviewed by Jonathan Bedard.

On Windows, autoinstall.py installs python modules to C drive even if
your working directory is on other drive (e.g. D drive). To install
python modules correctly on Windows, a drive letter where your working
directory exists needs to be given to "--root" option of "setup.py"
in autoinstall.py.

  • Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py:

(Package.install): Added root_location to detect a right drive letter to isntall modules on Windows.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r286630 r286633  
     12021-12-07  Yousuke Kimoto  <Yousuke.Kimoto@sony.com>
     2
     3        [webkitcorepy] Fail to install python module when a working directory is not on C drive on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=233936
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        On Windows, autoinstall.py installs python modules to C drive even if
     9        your working directory is on other drive (e.g. D drive). To install
     10        python modules correctly on Windows, a drive letter where your working
     11        directory exists needs to be given to "--root" option of "setup.py"
     12        in autoinstall.py.
     13
     14        * Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py:
     15        (Package.install): Added root_location to detect a right drive letter to isntall modules on Windows.
     16
    1172021-12-07  Devin Rousso  <drousso@apple.com>
    218
  • trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py

    r282322 r286633  
    306306                    AutoInstall.log('{} is known to be slow to install'.format(archive))
    307307
     308                root_location = "/" if not sys.platform.startswith('win') else "{}/".format(os.path.splitdrive(os.path.abspath(install_location))[0])
     309
    308310                log_location = os.path.join(temp_location, 'log.txt')
    309311                try:
     
    315317                                'install',
    316318                                '--home={}'.format(install_location),
    317                                 '--root=/',
     319                                '--root={}'.format(root_location),
    318320                                '--prefix=',
    319321                                '--install-lib={}'.format(install_location),
Note: See TracChangeset for help on using the changeset viewer.