Skip to content

Commit

Permalink
#331 pre-PR version for cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed May 17, 2024
1 parent ea8a875 commit f839213
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 25 deletions.
88 changes: 63 additions & 25 deletions 331_CellBender/CellBender_cpu.eb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ dependencies = [
('PyTorch', '2.1.2'),
('IPython', '8.14.0'),
('anndata', '0.10.5.post1'),
#('jupyter-contrib-nbextensions', '0.7.0'), #not for 2023a
#('pyro-ppl', '1.8.4'), #not for 2023a
('jupyter-contrib-nbextensions', '0.7.0'),
('pyro-ppl', '1.9.0'),
('loompy', '3.0.7'),
('PyTables', '3.8.0'),
('Qtconsole', '5.5.1'),
('Jupyter-bundle', '20230823'),
]

use_pip = True
Expand All @@ -32,25 +31,57 @@ local_comm_preinstallopts = """sed -i -e 's/^requires.*hatchling.*/requires = ["
local_comm_preinstallopts += """-e 's/^build-backend.*/build-backend = "setuptools.build_meta"/g' """
local_comm_preinstallopts += """-e 's/^dynamic = .*version.*/version = "%(version)s"/g' pyproject.toml && """

exts_list = [ #update this
('setuptools', '69.0.3', {
'checksums': ['be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78'],
}),
('comm', '0.2.1', {
'checksums': ['0bc91edae1344d39d3661dcbc36937181fdaddb304790458f8b044dbc064b89a'],
'preinstallopts': local_comm_preinstallopts,
}),
# jupyter-console 6.6.3 requires ipykernel>=6.14
('ipykernel', '6.20.2', {
'source_tmpl': SOURCE_PY3_WHL,
'checksums': ['5d0675d5f48bf6a95fd517d7b70bcb3b2c5631b2069949b5c2d6e1d7477fb5a0'],
}),
# jupyter-console 6.6.3 requires jupyter-core!=5.0.*,>=4.12
('jupyter_core', '4.12.0', {
'source_tmpl': SOURCE_PY3_WHL,
'checksums': ['a54672c539333258495579f6964144924e0aa7b07f7069947bef76d7ea5cb4c1'],
}),
# jupyter-console 6.6.3 requires traitlets>=5.4
# cellbender 0.3.0 requires jupyter, which is not installed.
# cellbender 0.3.0 has requirement nbconvert<7.0.0, but you have nbconvert 7.7.4.
# cellbender 0.3.0 has requirement notebook<7.0.0, but you have notebook 7.0.2.

# jupyter 1.0.0 requires jupyter-console, which is not installed.
# cellbender 0.3.0 has requirement nbconvert<7.0.0, but you have nbconvert 7.7.4.
# cellbender 0.3.0 has requirement notebook<7.0.0, but you have notebook 7.0.2.

# cellbender 0.3.0 has requirement nbconvert<7.0.0, but you have nbconvert 7.7.4.
# cellbender 0.3.0 has requirement notebook<7.0.0, but you have notebook 7.0.2.

# nbconvert 6.5.4 has requirement mistune<2,>=0.8.1, but you have mistune 3.0.1.

# exts_list = [ #update this
# ('setuptools', '69.0.3', {
# 'checksums': ['be1af57fc409f93647f2e8e4573a142ed38724b8cdd389706a867bb4efcf1e78'],
# }),
# ('comm', '0.2.1', {
# 'checksums': ['0bc91edae1344d39d3661dcbc36937181fdaddb304790458f8b044dbc064b89a'],
# 'preinstallopts': local_comm_preinstallopts,
# }),
# # jupyter-console 6.6.3 requires ipykernel>=6.14
# ('ipykernel', '6.20.2', {
# 'source_tmpl': SOURCE_PY3_WHL,
# 'checksums': ['5d0675d5f48bf6a95fd517d7b70bcb3b2c5631b2069949b5c2d6e1d7477fb5a0'],
# }),
# # jupyter-console 6.6.3 requires jupyter-core!=5.0.*,>=4.12
# ('jupyter_core', '4.12.0', {
# 'source_tmpl': SOURCE_PY3_WHL,
# 'checksums': ['a54672c539333258495579f6964144924e0aa7b07f7069947bef76d7ea5cb4c1'],
# }),
# # jupyter-console 6.6.3 requires traitlets>=5.4
# ('traitlets', '5.14.1', {
# 'source_tmpl': SOURCE_PY3_WHL,
# 'checksums': ['2e5a030e6eff91737c643231bfcf04a65b0132078dad75e4936700b213652e74'],
# }),
# ('jupyter_console', '6.6.3', {
# 'source_tmpl': SOURCE_PY3_WHL,
# 'checksums': ['309d33409fcc92ffdad25f0bcdf9a4a9daa61b6f341177570fdac03de5352485'],
# }),
# ('jupyter', '1.0.0', {
# 'checksums': ['d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f'],
# }),
# ('cellbender', version, {
# #'source_urls': ['https://github.com/broadinstitute/CellBender/archive'],
# #'sources': [{'download_filename': '%s.tar.gz' % local_commit, 'filename': '%(name)s-%(version)s.tar.gz'}],
# #'checksums': ['7eb67837d28495adb82147e80a2ab58eeb406c5d91aa69dd0cc120d9cb3d6396'],
# }),
# ]

exts_list = [
('traitlets', '5.14.1', {
'source_tmpl': SOURCE_PY3_WHL,
'checksums': ['2e5a030e6eff91737c643231bfcf04a65b0132078dad75e4936700b213652e74'],
Expand All @@ -62,10 +93,17 @@ exts_list = [ #update this
('jupyter', '1.0.0', {
'checksums': ['d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f'],
}),
('notebook', '6.5.7', {
'checksums': ['04eb9011dfac634fbd4442adaf0a8c27cd26beef831fe1d19faf930c327768e4'],
}),
('mistune', '0.8.4', {
'checksums': ['59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e'],
}),
('nbconvert', '6.5.4', {
'checksums': ['9e3c7c6d491374cbdd5f35d268c05809357716d346f4573186bbeab32ee50bc1'],
}),
('cellbender', version, {
#'source_urls': ['https://github.com/broadinstitute/CellBender/archive'],
#'sources': [{'download_filename': '%s.tar.gz' % local_commit, 'filename': '%(name)s-%(version)s.tar.gz'}],
#'checksums': ['7eb67837d28495adb82147e80a2ab58eeb406c5d91aa69dd0cc120d9cb3d6396'],
'checksums': ['94a46fb2b5921414ea86213cfdebca267b9ba6ba02df854cbd353980ab3aff42'],
}),
]

Expand Down
62 changes: 62 additions & 0 deletions 331_CellBender/jupyter-contrib-nbextensions.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
easyblock = "PythonBundle"

name = 'jupyter-contrib-nbextensions'
version = '0.7.0'

homepage = 'https://github.com/ipython-contrib/jupyter_contrib_nbextensions'
description = 'A collection of various notebook extensions for Jupyter'

toolchain = {'name': 'GCCcore', 'version': '12.3.0'}

builddependencies = [
('binutils', '2.40'),
('nodejs', '18.17.1'),
]

dependencies = [
('Python', '3.11.3'),
('IPython', '8.14.0'),
('PyYAML', '6.0'),
('jupyter-server', '2.7.2'),
]

use_pip = True

exts_list = [
('entrypoints', '0.4', {
'checksums': ['b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4'],
}),
('nbclassic', '1.0.0', {
'checksums': ['0ae11eb2319455d805596bf320336cda9554b41d99ab9a3c31bf8180bffa30e3'],
}),
# need jupyter_client in v7 - notebook 6.5.7 has requirement jupyter-client<8,>=5.3.4
('jupyter_client', '7.4.9', {
'checksums': ['52be28e04171f07aed8f20e1616a5a552ab9fee9cbbe6c1896ae170c3880d392'],
}),
# use notebook v6, in v7 the extension are moved to jupyter lab
('notebook', '6.5.7', {
'checksums': ['04eb9011dfac634fbd4442adaf0a8c27cd26beef831fe1d19faf930c327768e4'],
}),
('jupyter_contrib_core', '0.4.2', {
'checksums': ['1887212f3ca9d4487d624c0705c20dfdf03d5a0b9ea2557d3aaeeb4c38bdcabb'],
}),
('jupyter_highlight_selected_word', '0.2.0', {
'checksums': ['9fa740424859a807950ca08d2bfd28a35154cd32dd6d50ac4e0950022adc0e7b'],
}),
('jupyter_nbextensions_configurator', '0.6.3', {
'source_tmpl': '%(name)s-%(version)s-py2.py3-none-any.whl',
'checksums': ['cece496f3f62cf80bb0b04867ea463c32ed5db19ff5814fe18a3a7f1bb9da95b'],
}),
('jupyter_contrib_nbextensions', version, {
'checksums': ['06e33f005885eb92f89cbe82711e921278201298d08ab0d886d1ba09e8c3e9ca'],
}),
]

sanity_pip_check = True

sanity_check_paths = {
'files': ['bin/jupyter-contrib', 'bin/jupyter-contrib-nbextension', 'bin/jupyter-nbextensions_configurator'],
'dirs': ['lib64/python%(pyshortver)s/site-packages']
}

moduleclass = 'tools'

0 comments on commit f839213

Please sign in to comment.