Skip to content

Commit

Permalink
messing with setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fairliereese committed May 29, 2020
1 parent 811aadf commit 0f2dd1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
7 changes: 0 additions & 7 deletions neworkx_patch.py

This file was deleted.

15 changes: 13 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'swan_vis',
packages = ['swan_vis'],
version = '0.0.4_b',
version = '0.0.4',
license='MIT', description = 'swan is a tool for visualizing and analyzing transcript isoforms',
author = 'Fairlie Reese',
author_email = '[email protected]',
Expand All @@ -18,7 +18,7 @@
'fpdf',
'seaborn',
'diffxpy',
'tensorflow==2.2',
'tensorflow',
'tensorflow-probability'
],
classifiers=[
Expand All @@ -30,3 +30,14 @@
'Programming Language :: Python :: 3.7',
],
)

try:
import networkx as nx
import shutil
nx_loc = nx.__file__
nx_loc = '/'.join(nx_loc.split('/')[:-1])
nx_loc += '/drawing/nx_pylab.py'
nx_file = 'swan_vis/networkx_patch/nx_pylab.py'
shutil.copyfile(nx_file, nx_loc)
except:
raise Exception('Unable to patch networkx to allow for dashed edges.')

0 comments on commit 0f2dd1f

Please sign in to comment.