Changes between Version 7 and Version 9 of Ticket #5903


Ignore:
Timestamp:
05/19/11 19:16:32 (11 years ago)
Author:
mariah
Comment:

Code to identify packages with dist directory

#!/usr/bin/python

# search spkgs for dist directory 
#
# assumes you start in spkg/standard

import sys,os,subprocess

cur = os.getcwd()
print cur

for filename in os.listdir("."):
  if filename.endswith(".spkg"):
    val = subprocess.check_output(["file", filename])
    if val.find("bzip2") > -1:
      basename=filename.rstrip(".spkg")
      subprocess.check_output(["cp", filename,basename +".tar.bz2"])
      subprocess.check_output(["bunzip2", basename + ".tar.bz2"])
    else: # fortran.spkg (only tar'ed) 
      basename=filename.rstrip(".spkg")
      subprocess.check_output(["cp", filename,basename + ".tar"])
    subprocess.check_output(["tar", "xf", basename + ".tar"])
    if os.path.exists(cur + "/" + basename + "/dist") == True:
      print filename

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5903 – Description

    v7 v9  
    1 The dist/ directories currently shipped in various Sage .spkg's have resulted in confusion for people a few times.
    2 
    3 These directories are no longer used (the Debian packaging for these things are now maintained in my own git repositories).  So, they should be deleted before anyone else gets confused.  The list of packages needing this treatment is as follows:
     1The dist/ directories currently shipped in various Sage .spkg's are no longer used and should be removed.  The current list of packages needing this treatment is:
    42
    53{{{
    6 eclib-20080310.p7
    7 extcode-3.4.1
    8 flint-1.2.4.p1
    9 flintqs-20070817.p4
    10 gap-4.4.10.p11
    11 genus2reduction-0.3.p5
    12 givaro-3.2.13rc2
    13 iml-1.0.1.p11
    14 jmol-11.6.16.p0
    15 lcalc-20080205.p2
    16 libfplll-2.1.6-20071129.p5
    17 linbox-1.1.6
    18 ntl-5.4.2.p6
    19 palp-1.1.p1
    20 polybori-0.5rc.p6
    21 rubiks-20070912.p8
    22 scipy_sandbox-20071020.p3
    23 singular-3-0-4-4-20080711.p4
    24 symmetrica-2.0.p2
    25 sympow-1.018.1.p6
    26 tachyon-0.98beta.p8
    27 zn_poly-0.9.p0
     4eclib
     5extcode
     6flint
     7gap
     8givaro
     9iml
     10libm4ri
     11linbox
     12ntl
     13palp
     14rubiks
     15symmetrica
     16sympow
     17zn_poly
    2818}}}
    29 
    30 Since this is a huge list, we probably want to handle this issue by just deleting the dist/ directories the next time each of these .spkg files is updated.