Skip to content

Commit 69464ff

Browse files
Fix setuptools bug
1 parent 11e9028 commit 69464ff

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
# Python interface for the Enhanced Monte Carlo (EMC) package
1+
# Enhanced Monte Carlo (EMC) Python Interface
2+
3+
The `pyemc` module is a thin Python layer around the [EMC](http://montecarlo.sourceforge.net/emc/Welcome.html) package that allows you to use EMC with ease.
4+
5+
6+
## Installation
7+
8+
```bash
9+
pip install pmd
10+
```
11+
12+
13+
## Usage
14+
15+
```python
16+
import pyemc
17+
18+
# Equivalent to running ./emc_setup.pl your-setup-file.esh on the command line
19+
pyemc.setup('your-setup-file.esh')
20+
21+
# Equivalent to running the emc executable
22+
pyemc.build('build.emc')
23+
```

setup.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,19 @@
99
LONG_DESCRIPTION = f.read()
1010

1111

12-
def get_exclude_bins():
13-
bins = ['emc_linux64', 'emc_macos', 'emc_win32.exe']
14-
if sys.platform == 'linux' or sys.platform == 'linux2':
15-
bins.remove('emc_linux64')
16-
elif sys.platform == 'darwin':
17-
bins.remove('emc_macos')
18-
elif sys.platform == 'win32':
19-
bins.remove('emc_win32.exe')
20-
return bins
21-
22-
2312
def package_files(directory):
24-
exclude_bins = get_exclude_bins()
2513
paths = []
2614
for (path, directories, filenames) in os.walk(directory):
2715
for filename in filenames:
28-
if filename not in exclude_bins:
29-
paths.append(os.path.join('..', path, filename))
16+
paths.append(os.path.join('..', path, filename))
3017
return paths
3118

3219

3320
extra_files = package_files('pyemc/emc')
3421

3522
setup(
3623
name='emc-pypi',
37-
version='0.1.1',
24+
version='0.1.2',
3825
long_description=LONG_DESCRIPTION,
3926
long_description_content_type='text/markdown',
4027
description='Python interface for the Enhanced Monte Carlo (EMC) package',
@@ -48,4 +35,4 @@ def package_files(directory):
4835
],
4936
packages=find_packages(),
5037
package_data={'': extra_files},
51-
zip_safe=True)
38+
zip_safe=False)

0 commit comments

Comments
 (0)