Skip to content

Commit c87780d

Browse files
Fixed installation issues
1 parent be7de53 commit c87780d

File tree

6 files changed

+32
-3
lines changed

6 files changed

+32
-3
lines changed

packages/markitdown/__init__.py

Whitespace-only changes.
-167 Bytes
Binary file not shown.

packages/markitdown/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools", "wheel", "pip"]
33
build-backend = "setuptools.build_meta"

packages/markitdown/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = openize-markitdown
3-
version = 25.3.15
3+
version = 25.3.16
44
author = Openize
55
author_email = packages@openize.com
66
description = A document converter for Word, PDF, Excel, and PowerPoint to Markdown.

packages/markitdown/setup.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import importlib.util
2+
import subprocess
3+
import sys
4+
from setuptools import setup
5+
6+
def install_if_missing(package, module_name=None):
7+
"""Check if a package is installed; if not, install it."""
8+
if module_name is None:
9+
module_name = package.replace("-", "_") # Convert dashes to underscores
10+
11+
if importlib.util.find_spec(module_name) is None:
12+
print(f"Installing {package}...")
13+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
14+
else:
15+
print(f"{package} is already installed.")
16+
17+
# List of dependencies
18+
dependencies = [
19+
("aspose-cells", "asposecells"),
20+
("aspose-words", "asposewords"),
21+
("aspose-slides", "asposeslides")
22+
]
23+
24+
# Install missing dependencies before proceeding
25+
for package, module_name in dependencies:
26+
install_if_missing(package, module_name)
27+
28+
# Now proceed with the actual installation using setup.cfg
29+
setup()

packages/markitdown/src/openize/markitdown/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
sys.path.append(os.path.dirname(__file__))
55

6-
__version__ = "25.3.15"
6+
__version__ = "25.3.16"
77

88
from .processor import DocumentProcessor
99
from .converters import WordConverter, PDFConverter, ExcelConverter, PowerPointConverter

0 commit comments

Comments
 (0)