Skip to content

Commit

Permalink
fix distutils deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush9pandey committed Jul 12, 2024
1 parent c65abb6 commit c487dde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools
matplotlib
pytest
numpy>=1.16.5
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from distutils.core import setup
from distutils.extension import Extension
import setuptools

import platform
import os
import sys
Expand Down Expand Up @@ -79,7 +79,7 @@
'simulator.pyx',
'inference.pyx']
bioscrape_extensions = [
Extension(
setuptools.Extension(
name = 'bioscrape.'+s.split('.')[0],
sources = [bioscrape_src_dir+'/'+s],
**ext_options) for s in bioscrape_source_files
Expand All @@ -93,7 +93,7 @@
lineage_src_dir = 'lineage'
lineage_source_files = ['lineage.pyx']
lineage_extensions = [
Extension(name = 'bioscrape.'+s.split('.')[0],
setuptools.Extension(name = 'bioscrape.'+s.split('.')[0],
sources = [lineage_src_dir+'/'+s],
**ext_options) for s in lineage_source_files
]
Expand All @@ -104,7 +104,7 @@
print("Error occured during Cython Compilation. Check C++ Compiler and Cython Installation.")
raise

setup(
setuptools.setup(
long_description=long_description,
# package_dir = {'bioscrape' : bioscrape_src_dir},
package_data = package_data,
Expand Down

0 comments on commit c487dde

Please sign in to comment.