Ticket #10097: trac_10097-sagenb_relocatability.patch

File trac_10097-sagenb_relocatability.patch, 986 bytes (added by mpatel, 11 years ago)

Use relative paths. sagenb repository.

  • spkg-dist

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1286521264 25200
    # Node ID 9a5a839fb10dc442d0af231fce429d41e689c6f3
    # Parent  fb5a819d1dd3f2b69dbdaf9b2d48b27c8f989cdf
    #10097: Use relative paths for the 'develop' installation
    
    diff --git a/spkg-dist b/spkg-dist
    a b rm -f "$SAGE_ROOT/devel/sagenb" 
    9393cd ..
    9494cp -pr sagenb "$SAGE_ROOT/devel/sagenb-main"
    9595
    96 ln -sf "$SAGE_ROOT/devel/sagenb-main" "$SAGE_ROOT/devel/sagenb"
     96cd "$SAGE_ROOT/devel"
     97ln -snf sagenb-main sagenb
    9798
     99# We use relative paths for relocatability.
    98100cd "$SAGE_ROOT/devel/sagenb"
    99 python setup.py develop
     101python setup.py develop --egg-path ../../../../devel/sagenb
     102
     103cd "$SAGE_ROOT/local/lib/python/site-packages"
     104sed 's/^.*sagenb.*$/..\/..\/..\/..\/devel\/sagenb/' easy-install.pth > easy-install.pth.new
     105mv -f easy-install.pth.new easy-install.pth
    100106""")
    101107spkg_install_fd.close()
    102108os.chmod(spkg_install, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP |