Skip to content

Commit fbe681a

Browse files
committed
removed unecessary files and fixed some setup
1 parent cb45d23 commit fbe681a

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
33
*.py[cod]
4-
*.ipynb
54

65
# C extensions
76
*.so
@@ -17,6 +16,8 @@ parts/
1716
sdist/
1817
var/
1918
Drafts/
19+
*/build/
20+
build/
2021

2122
*.egg-info/
2223
.installed.cfg
@@ -59,7 +60,12 @@ coverage.xml
5960

6061

6162
#Datafiles
62-
.csv
63+
*.csv
6364

6465
# vi
6566
*.swp
67+
68+
#Ignore notebooks
69+
*.ipynb
70+
!Test_Scripts_1.ipynb
71+
!TS_2_Irradiance_functions.ipynb

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include *.txt
22
recursive-include pvlib/data *
3+
include README.md
4+
include pvlib/spa_c_files/*.h
35

46
#recursive-include docs *.txt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Hopefully you're using [virtualenv](http://virtualenv.readthedocs.org/en/latest/
5656
pip install .
5757
```
5858

59-
Add ``-e`` to install in [develop mode](http://pip.readthedocs.org/en/latest/reference/pip_install.html#editable-installs).
59+
Add ``-e`` to install in [develop mode](http://pip.readthedocs.org/en/latest/reference/pip_install.html#editable-installs). Note, this mode may not properly link ``spa_py`` so a warning is issued by ``pvlib.solarposition`` when trying to import it.
6060

6161
```
6262
# built-in imports

pvlib/.gitignore

Lines changed: 0 additions & 8 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
extensions = []
5858

5959
spa_ext = Extension('pvlib/spa_c_files/spa_py',
60-
['pvlib/spa_c_files/spa.c', 'pvlib/spa_c_files/spa_py.c'])
60+
sources = ['pvlib/spa_c_files/spa.c',
61+
'pvlib/spa_c_files/spa_py.c'],
62+
depends = ['pvlib/spa_c_files/spa.h'])
6163
extensions.append(spa_ext)
6264

6365

@@ -71,4 +73,4 @@
7173
maintainer_email=MAINTAINER_EMAIL,
7274
license=LICENSE,
7375
url=URL,
74-
**setuptools_kwargs)
76+
**setuptools_kwargs)

0 commit comments

Comments
 (0)