Commit abd74548 authored by Blaise Li's avatar Blaise Li
Browse files

More robust python module install.

Depending on pip version, `pip3.6` sometimes fail with
"ImportError: cannot import name 'main'".

Using `python3.6 -m pip` instead avoids this.
parent 3d62098c
#!/bin/sh #!/bin/sh
python3.6 setup.py build_ext python3.6 setup.py build_ext
# .egg-link does not work with PYTHONPATH ? # .egg-link does not work with PYTHONPATH ?
pip3.6 install -e . python3.6 -m pip install -e .
pip3.6 install --no-deps --ignore-installed . python3.6 -m pip install --no-deps --ignore-installed .
...@@ -139,7 +139,7 @@ def gtf_2_genes_exon_lengths(gtf_filename): ...@@ -139,7 +139,7 @@ def gtf_2_genes_exon_lengths(gtf_filename):
def repeat_bed_2_lengths(repeat_bed): def repeat_bed_2_lengths(repeat_bed):
"""Computes the lengths of repeatitive elements in a bed file, grouped by families. """Computes the lengths of repetitive elements in a bed file, grouped by families.
This assumes that the elements have their names composed of the family name, This assumes that the elements have their names composed of the family name,
then a colon, then a number. For instance: then a colon, then a number. For instance:
Simple_repeat|Simple_repeat|(TTTTTTG)n:1 Simple_repeat|Simple_repeat|(TTTTTTG)n:1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment