In general, you would want to use the first option.
Your normalization places your data in a new space which is seen by the PCA and its transform basically expects the data to be in the same space.
Scikit-learn provides tools to do this transparently and conveniently by concatenating estimators in a pipeline. Try:
from sklearn.preprocessing import StandardScaler
from sklearn.decomposition import PCA
from sklearn.pipeline import Pipeline
import numpy as np
data = np.random.randn(20, 40)
pipeline = Pipeline([('scaling', StandardScaler()), ('pca', PCA(n_components=5))])
pipeline.fit_transform(data)
The prepended scaler will then always apply its transformation to the data before it goes to the PCA object.
As @larsmans points out, you may want to use sklearn.preprocessing.Normalizer instead of the StandardScaler or, similarly, remove the mean centering from the StandardScaler by passing the keyword argument with_mean=False.
fit_transform. It's more efficient, esp. for PCA which computes the transformation as part of its training step. - Fred Foo